home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / UTILITY / DOSIMP12.ARJ / SIMPLY6.HYP < prev    next >
Text File  |  1992-01-16  |  111KB  |  1,849 lines

  1.                The |tAbort, Retry, Fail, Ignore|t Error Message
  2.  
  3. Here's something you're going to see about a zillion times.   Practically
  4. every time anything goes wrong with a disk read or write, DOS is going to
  5. tell you a short explanation  of the problem and then show you this mess-
  6. age as well,  so you can decide  what you want to do  about that problem.
  7. Well if it's a problem you can do something about, like putting the right
  8. disk back into the drive, or removing the write-protect from the disk, or
  9. closing the door on the drive,  then do it and press R for Retry, and ev-
  10. erything will be fine.  If the same message comes back again, try R again
  11. a couple more times and if you still get the same message,  then choose A
  12. for Abort,  but be aware that  in some cases what that will do  is cancel
  13. the entire program  that asked  for the disk access.   So you might  lose
  14. some data.   The only time  I can think of that  you'll need the Fail op-
  15. tion,  is if you have  $P$G as your prompt,  and you forget  and take the
  16. disk out of  the drive before you  switch back to the hard drive.   Don't
  17. ever use  the Ignore option  unless you know  exactly what  you're doing.
  18. What that one will do,  is allow the program to continue,  without making
  19. the read or write on the disk.  So don't ever choose Ignore.
  20.                   <page down> for Booting and Rebooting
  21.                           |tBoot|ting and |tReboot|ting
  22.  
  23. To "boot" a computer  just means  to turn on the power.   This term comes
  24. from  the expression  "pulling oneself up  by the bootstraps".   You see,
  25. when a computer  is not receiving  any power,  it obviously  doesn't have
  26. any software loaded into memory,  so the computer is quite stupid at that
  27. time.   When you turn on the power, the computer loads the operating sys-
  28. tem (DOS) into memory, and suddenly it has become a useful piece of mach-
  29. inery.   So that's sort of analogous to the way a bum in the gutter might
  30. "pull himself up by the bootstraps" and make something of himself.
  31.  
  32. To "reboot"  a computer means  to remove everything  from the  computer's
  33. memory and have it reload the operating system from the disk,  just as if
  34. the power had been turned off and back on.  There are two different types
  35. of |nreboot|n, and several ways to accomplish each.  (See also Boo|1t Disk.)
  36.  
  37. First,  a "cold boot"  or "hard reboot"  means to actually remove and re-
  38. apply power.  This is necessary sometimes when the computer has "crashed"
  39. so hard that a warm |nboot|n won't even work.   And that's  the only time you
  40.                    <page down> for more Boot and Reboot
  41. want to perform a cold |nboot|n,  because a warm |nboot|n  is a little bit easier
  42. on the computer's components.   That's why a warm |nboot|n is also known as a
  43. "soft reboot".
  44.  
  45. A "warm boot"  does not actually remove power from the computer,  it just
  46. clears out the RAM  completely,  causing the computer  to reload DOS from
  47. the disk.   It fulfills the same function that a cold |nboot|n does,  without
  48. the shock to the system that is caused whenever power is reapplied to the
  49. components.
  50.  
  51. So how do you accomplish a reboot?  The easiest way is to hold the <Ctrl>
  52. and <Alt> keys down, and hit the <Del> key.  The Ctrl-Alt-Del method per-
  53. forms a warm or soft |nreboot|n.   There are also some public domain software
  54. programs that can perform a warm |nboot|n from within a batch file.
  55.  
  56. Other public domain programs can do a cold |nboot|n.   Another way is to just
  57. turn the power switch off and back on.   But please, wait at least thirty
  58. seconds between turning it off and turning it back on,  to allow the hard
  59. drive and the fan to stop spinning.   It's best if you turn it off,  then
  60.                    <page down> for more Boot and Reboot
  61. go get a cup of coffee or something,  then come back and turn it back on.
  62. Remember that the hard drive  is spinning at some amazing speed like 3600
  63. revolutions per minute,  the whole time it's on.   Slowing it down (turn-
  64. ing it off) and speeding it up  (turning it back on) so quickly like that
  65. is not good for it.
  66.  
  67. If you have  a reset button on the front panel  of your computer,  it may
  68. perform a warm or cold |nreboot|n,  depending on the brand  and model of your
  69. machine.   The easiest way to tell,  is to see if your computer  performs
  70. the |TPOST|T when this button is pressed, or not.  |nPower|n-On Self Test is what
  71. that stands for,  and it is performed by a program that's stored in a ROM
  72. chip on your motherboard.   This test is only performed when the power is
  73. turned on,  so obviously if your reset button  causes the computer  to do
  74. the |nPOST|n then it's doing a cold |nboot|n.  If your screen shows a little num-
  75. ber up in the top left corner that counts up in increments of 64, then it
  76. is testing your RAM  and that's part  of the |nPOST|n.   If your reset button
  77. does not cause the RAM test to occur, then it's doing a warm |nboot|n.
  78.  
  79. The problem with  rebooting a computer  is that even if  you didn't do it
  80.                    <page down> for more Boot and Reboot
  81. on purpose, it stills clears out every byte of everything in memory.   So
  82. save your work to disk, often!   That way,  if your computer locks up and
  83. you're forced to |nreboot|n,  then you only lose a little bit of work,  what-
  84. ever you've done since the last time you saved to disk.
  85.  
  86. See the section  about the SHELL command  for a quick description of what
  87. the computer does while it's booting.
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.                    <page down> for What Is a |nBoot|n Disk?
  101.                            What Is a |tBoo|1t Disk|t?
  102.  
  103. A boot disk is a disk that has been made bootable.  This is the only kind
  104. of disk that a computer will boot from.   What makes a disk bootable?  It
  105. has to have a |nboot|n record on it,  as well as having the  two system files
  106. (|sIO.SYS|s and MSDOS.SYS for MS-DOS or IBMBIO.COM and IBMDOS.COM for PC-DOS)
  107. in the right area of the disk, and it also has to have COMMAND.COM on it.
  108.  
  109. How do you make  a bootable disk?   (That's also called a "system disk".)
  110. It's really easy.   You just use the FORMAT A: /S command.   That command
  111. will put all of those necessary ingredients onto the disk.   Don't forget
  112. that the FORMAT command will first remove all data from the disk.
  113.  
  114. Another way  is to use the command  SYS A:  and then COPY the COMMAND.COM
  115. file to the disk.   The |TSY|1S|T command  will put  the system files  from the
  116. current drive,  and the |nboot|n record, onto the specified disk, but not the
  117. COMMAND.COM file.  (DOS 5.0's SYS command will do that part too, though.)
  118.  
  119. It is possible  to make a disk bootable  after it already has  some other
  120.                       <page down> for more Boo|1t Disk
  121. files on it,  but it's not easy.   Well,  if the disk used to be bootable
  122. but the system files were corrupted in some way, then the SY|1S command can
  123. probably do it.   But if the disk never had  the system files on it,  and
  124. there are  other files on it,  then the SY|1S command  probably won't work,
  125. because the system files  have to go right at  the beginning of the disk,
  126. so if there are any other files  in that spot,  then SY|1S won't be able to
  127. put the system files there.   There are some hard drive utility packages,
  128. such as the Norton Utilities,  that can do it,  by moving the other files
  129. out of the way  to make room  for the system files,  but the  SY|1S command
  130. just can't do it except in DOS 5 which is not so picky about such things.
  131.  
  132. What happens if you try to boot  from a disk that has not been made |nboot|n-
  133. able?  Not a whole lot.  That's the problem.  You'll get an error message
  134. like, "|tNon system disk|t replace and strike any key".   And that's all that
  135. will happen.
  136.  
  137. The only disks  that can be bootable  are A: and C:.   Those are the only
  138. ones that  the computer will check.   Your access light on drive B:  will
  139. come on while |sboot|sing, but that is only part of the POST.   When the com-
  140.                       <page down> for more Boo|1t Disk
  141. puter gets ready  to look for the system files  to load them into memory,
  142. it looks on A:,  and if there is  a bootable disk in that drive,  then it
  143. |sboot|ss from there;  otherwise,  it looks at C: to see if  that one's |nboot|n-
  144. able.   If neither A: nor C:  holds a  bootable disk,  then your computer
  145. isn't going to do anything.
  146.  
  147. There are  just a couple of  brands and models  of computer that can boot
  148. from the B: drive if they're specially set up to do so, but those are few
  149. and far between.  If you don't have one of those, then there are only two
  150. ways to ever boot from a disk in the B: drive.
  151.  
  152. One way is to open up the computer's case, switch the cables that run be-
  153. tween the drive controller and the A: and B: drives, and then if you have
  154. a 286 or higher machine,  go into your CMOS setup  and tell it that A: is
  155. now B:  and B: is now A:.   Right,  technically you're still  not |sboot|sing
  156. from the B:  drive,  because now it's the A:  drive,  but you're  |sboot|sing
  157. from what used to be the B: drive.
  158.  
  159. The other way is with a shareware program called B-|nBOOT|n or |nBOOT|n-B  (it is
  160.                       <page down> for more Boo|1t Disk
  161. listed by different names on different |sBBS|ss).  Your A: drive does have to
  162. be in working order for this to work.  The program creates a special disk
  163. for your A: drive that is not bootable, but that has some data on it that
  164. tells the computer  to go look on the B: drive for the system files.   So
  165. when the computer tries to boot from A:, it ends up going to B:.
  166.  
  167. There are actually  computer salesmen  who will try to  tell you that you
  168. can use  the ASSIGN command  to make the computer boot from the B: drive.
  169. This is absolutely  ridiculous.   Sure,  you can use  ASSIGN  to make DOS
  170. think that B: is A:,  but as soon as you try to reboot the computer,  the
  171. reassignment is cancelled.
  172.  
  173. If you have a floppy-only system,  you need to make sure you have lots of
  174. copies of the disk you usually boot from.   You never can tell when three
  175. copies of that disk are going to go bad all at once.  Keep several copies
  176. in several different places.
  177.  
  178. If you have  a hard drive  and it is bootable,  for heaven's sake  do not
  179. think that means  you don't need to keep  bootable floppies around!   You
  180.                       <page down> for more Boo|1t Disk
  181. most certainly do!   Hard drives die and that's all there is to it.   Be-
  182. sides, what if you're messing around trying to improve your configuration
  183. by editing your CONFIG.SYS  and/or AUTOEXEC.BAT files,  and you make some
  184. error that locks up your system?   Do you think that |sreboot|sing  will help
  185. you in that case?  If you reboot from the same disk that has the bad con-
  186. figuration file, you'll just lock the system up again!   You need to boot
  187. from a floppy that has no AUTOEXEC.BAT and CONFIG.SYS files,  or that has
  188. older copies  of those files,  from before  you messed them up.   (By the
  189. way, if you did mess them up, don't feel bad!   It happens to the best of
  190. us!)
  191.  
  192. Well, as I said,  the only thing that needs to be done to make a bootable
  193. disk, is to use the FORMAT A: /S command or else the SY|1S A: and COPY COM-
  194. MAND.COM A: commands.   A disk that has had this done to it will boot the
  195. computer, but it may not make all of your peripherals work.   Suppose you
  196. have some unusual hard drive which requires a special device driver, such
  197. as DMDRVR.BIN,  in the CONFIG.SYS file  to make the drive recognizable to
  198. DOS?   You'll be able to boot from a disk  with no CONFIG.SYS file on it,
  199. but you won't be able to use your hard drive in that case.
  200.                       <page down> for more Boo|1t Disk
  201. You really need to know  what every single thing in your AUTOEXEC.BAT and
  202. CONFIG.SYS files does,  so that you'll know  which ones  it is absolutely
  203. necessary  for your boot disk  to have on it.   There are times  when you
  204. will want to boot up  with the fewest possible number of commands in your
  205. AUTOEXEC.BAT and CONFIG.SYS files,  to save RAM, so you need to know what
  206. the absolutely  necessary commands for your system are.   Most people can
  207. boot up perfectly well from a disk without any AUTOEXEC.BAT or CONFIG.SYS
  208. files,  but if your system  has some special  configuration,  you need to
  209. know about it.   So if there is some command  in your CONFIG.SYS or AUTO-
  210. EXEC.BAT file that you can't find mentioned anywhere here or in any other
  211. DOS manual you have,  or in any of the papers that came with your system,
  212. then you need  to call the dealer  from whom you purchased  your computer
  213. and ask him about them.
  214.  
  215. If you have  any commands  in your AUTOEXEC.BAT  or CONFIG.SYS files that
  216. really have to be  executed  in order  for your system  to work properly,
  217. then besides creating  an AUTOEXEC.BAT  or CONFIG.SYS file  that contains
  218. that command  and putting it  on your  boot disk,  you also need  to make
  219. sure  the command file  for that command  is on  the boot disk too.   You
  220.                       <page down> for more Boo|1t Disk
  221. might be tempted to put the command into the file like this:
  222.           C:\UTIL\COMMAND
  223. but what if your hard drive seems to have lost all its data?  Your system
  224. won't be able to access the command file on the C: drive.   Make sure you
  225. copy  the command file  to the boot disk  and change the line in AUTOEXEC
  226. .BAT to A:\COMMAND.   Do that for every single external command (that is,
  227. commands that are not part of  |sCOMMAND.COM|s)  that has to be listed in the
  228. AUTOEXEC.BAT and CONFIG.SYS files on the bootable floppy.
  229.  
  230. Did you ever wonder  how on earth you would restore  your BACKUP disks if
  231. your hard drive died  and you couldn't access  the RESTORE command that's
  232. in your C:\DOS |sdirectory|s?   Well you'd better put a copy  of your |nRESTORE|n
  233. .COM file onto your bootable floppy disk right now, don't you think?   As
  234. well as commands like DEBUG, FDISK, FORMAT, LABEL, SY|1S, and EDLIN.
  235.  
  236. So, you should have a few different copies of each type of bootable flop-
  237. py that you make, and you should make several different kinds.   One that
  238. has no  CONFIG.SYS or  AUTOEXEC.BAT  (or if you need  some special device
  239. driver to make  your hard drive accessible,  put the one-line  CONFIG.SYS
  240.                       <page down> for more Boo|1t Disk
  241. file  onto the floppy too)  and another kind  that will boot your  system
  242. up just the way  you always have it set up.   Put the same CONFIG.SYS and
  243. AUTOEXEC.BAT files you have on your hard drive, onto the floppy, and make
  244. all the changes necessary  to make DOS able to find  the command files on
  245. the floppy instead of the hard drive.  By that I mean change the commands
  246. from C:\DOS\COMMAND to A:\COMMAND and then of course copy all the command
  247. files to the floppy also.   And whatever command you use  to restore your
  248. |sBACKUP|ss, that command file must also be there.  Label those floppies like
  249. "Clean |sBoot|s"  (for the one with no AUTOEXEC.BAT and CONFIG.SYS files) and
  250. "Full |sBoot|s"  (for the one with your regular configuration files)  and you
  251. are all set for any hard drive emergency.
  252.  
  253. If you have DOS version 4,  no earlier version, no later version, just 4,
  254. and if you have  a hard drive partition  larger than  32 mega|sbytes|s,  then
  255. there is one more file  you need to have  on your boot disk!   |nSHARE|n.EXE!
  256. You absolutely and definitely  and always must have that file in the same
  257. directory  with COMMAND.COM,  every time you boot up,  so that SHARE will
  258. get loaded into memory,  if you have version 4 and a hard drive partition
  259. larger than 32 megs!  This is true for any disk you ever boot from.
  260.                   <page down> for |nCleaning|n Your Computer
  261.                           |tCleaning|t Your Computer
  262.  
  263. Well, dusting the outside of the case is pretty obvious, but did you know
  264. that you need to do the inside of the computer once in a while too?  Yep,
  265. the inside can get pretty nasty,  because the fan in the power supply has
  266. got to  draw lots of air  in from the front  of the computer,  across the
  267. components, and out the back, to keep everything cool in there.  You must
  268. not ever do something like  covering over the  floppy drive openings,  to
  269. keep dirt out,  because the computer desperately needs  the air that goes
  270. through there.  Well, if air goes in, that's right, dust and cat hair and
  271. stuff goes in too.  Well when it starts to build up on the components, it
  272. acts like insulation  and keeps the air from cooling the components,  and
  273. you have a fried computer!   So depending on how dirty the computer's en-
  274. vironment is,  about every three months  you need to open up the case and
  275. vacuum in there.   Just be careful!   See the section about Power for de-
  276. tails about  how to work  inside the computer's case.   And don't let the
  277. vacuum attachment touch anything in there.   Just get it  close enough to
  278. suck up the dirt.   And while you've got the case open,  go ahead and re-
  279. seat all the cards and cables as described in that Power section.
  280.                       <page down> for more Cleaning
  281. Now for the  monitor screen.   Many monitors have  a special coating that
  282. protects them from damage.   Well, glass cleaners can dissolve that coat-
  283. ing.   (I know, because I ruined mine that way.)   If you've already used
  284. some glass cleaner on it before you found that out,  then you've probably
  285. got a really blotchy screen  from places where the coating  is gone,  and
  286. places where  it's still there.   You may as well  get that glass cleaner
  287. back out and remove  the rest of the coating.   That would be better than
  288. leaving it all blotchy like that.  A tiny speck of liquid fabric softener
  289. diluted with a bunch of water is a real good thing  to clean your monitor
  290. with,  because that will help cut down on static electricity without dam-
  291. aging that coating, if it's not already too late for that.
  292.  
  293. You should turn your keyboard  upside-down and shake it,  or even bump it
  294. very gently against the desktop, every now and then to get rid of some of
  295. the crumbs and dirt  that are always getting in there.   Use some alcohol
  296. on a cotton swab or cotton ball to get the grime off the keys.  If you've
  297. got a key that's sticking real bad,  pry off the cap and use some alcohol
  298. on the inside of the cap.   If you've got a keyboard  that's so filthy it
  299. doesn't work at all anymore,  and you intend to  throw it away  and buy a
  300.                       <page down> for more Cleaning
  301. new one,  there's one last-ditch effort  you can make to try and save it.
  302. There are  some |skeyboard|ss  that can handle  being taken  into the shower,
  303. soaped up, rinsed off real well, and left to dry for a couple days.  Sure
  304. it could ruin it completely,  but you were planning to throw it away any-
  305. how, right?   And if it happens to be  one of those |skeyboard|ss  that don't
  306. mind water then it's fixed and you don't have to buy a new one after all!
  307.  
  308. All right,  how about floppy drives?   Yes,  they need to be cleaned too,
  309. with one of those disk drive head |ncleaning|n kits that you can find in most
  310. any computer store.  It's just like a floppy disk, only instead of having
  311. a real disk inside it,  there's a round piece of a sort of |ncleaning|n cloth
  312. in there.   Well you put a couple drops of this |ncleaning|n fluid that comes
  313. in the kit, onto the cloth thing,  and stick it in the drive, and issue a
  314. DIR command on that drive to make the heads try to access the disk.  That
  315. rubs the heads  against the |ncleaning|n cloth  for about fifteen seconds and
  316. then you'll get the famous  "|sAbort, Retry, Fail, Ignore|s"  message because
  317. of course the heads can't find the data on that disk.   If it didn't last
  318. fifteen seconds,  then hit R for Retry  and do it again.   Then hit A for
  319. Abort, and you have a clean floppy drive.  But you should only do it once
  320.                       <page down> for more Cleaning
  321. every six months, or whenever you're getting a lot of read errors, which-
  322. ever comes first.   That little |ncleaning|n cloth is kind of abrasive and is
  323. not really good for the drive.  The drive does need to be kept clean, but
  324. you mustn't use  those |ncleaning|n kits  as often as  the instructions  tell
  325. you.   Remember that the people who wrote those instructions just want to
  326. sell you more kits,  and since each kit is only good for a limited number
  327. of cleanings, then if you use it more often, you'll have to buy a new one
  328. sooner, and that's just what they want.  Then your disk drive gets ruined
  329. sooner too,  and they can sell you  another one  of those as well.   That
  330. would make them real happy.  But that's not what you want to do, is it?
  331.  
  332. You don't have to worry about your hard drive getting dirty, because they
  333. are very well sealed.  Nothing's going to get in there.
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.                     <page down> for How Do |nDisks|n Work?
  341.                             How Do |tDisks|t Work?
  342.  
  343. The easiest way  to think about |ndisks|n  is like a phonograph record.   You
  344. know, like an album.   A disk is a round thing with a hole in the middle,
  345. that spins around  and has the head  (needle) of a drive  (record player)
  346. moving back and forth across it to read the parts it wants to read.   Ok,
  347. a record player can't do that part,  it can only read the whole disk from
  348. beginning to end unless you pick up the needle and move it somewhere else
  349. on the record.   But unlike a record player, a disk drive does have some-
  350. one standing there to pick up the head and move it to another area of the
  351. disk whenever it wants to.
  352.  
  353. On a record player, there is only one "track" per side.  That track is in
  354. a spiral which reaches from the outside edge of the disk,  all the way to
  355. the center where the label is.  That's not the case for a disk, because a
  356. disk's tracks are concentric circles  rather than one long spiral.   Each
  357. track is a closed circle, slightly smaller than the track outside it, and
  358. slightly larger than the track inside it.
  359.  
  360.                         <page down> for more Disks
  361. Each track is divided into sectors.   Each |tsector|t is just  a small arc of
  362. the circle.   If you cut a disk up into pieces like a pie, then one piece
  363. of the  "pie" would contain  one |nsector|n from each track  of the disk.   A
  364. |nsector|n holds 512 bytes of data.   That's the smallest amount DOS can read
  365. or write at a time.
  366.  
  367. Now a cylinder is all the tracks  of the disk that are  an equal distance
  368. from the edge.   So each cylinder of a floppy disk  has only two tracks--
  369. one on side one of the floppy, and one on side two.  All the other tracks
  370. on the floppy are some other distance from the edge.
  371.  
  372. But since a hard drive has several platters (disks) inside it, a cylinder
  373. on a hard drive can have lots of tracks.   Track 5 of side one of platter
  374. one,  track 5 of side two of platter one,  track 5 of side one of platter
  375. two,  track 5 of side two of platter two,  track 5 of side one of platter
  376. three, all these tracks are in the same cylinder of the hard drive.
  377.  
  378. Ok, those were the physical parts of a disk.   Now what about the logical
  379. parts?   How does DOS use disks?   Well every disk has  a directory and a
  380.                         <page down> for more Disks
  381. FAT.  These are the parts that are used like we use the table of contents
  382. and the index of a book.   Every file that's on the disk gets a directory
  383. entry.   Every |tcluster|t of the disk gets a FAT entry, whether there is any
  384. file in that |ncluster|n or not.   Clusters are also called Allocation Units.
  385.  
  386. What's a cluster?   Well, now, that's kind of tough to explain.  First of
  387. all, it depends on the size of the disk in question, and also on the ver-
  388. sion of DOS that was used to format the disk.  Sometimes a |ncluster|n is the
  389. same as just one |ssector|s,  512 bytes  (like on high density floppy disks).
  390. Other times a |ncluster|n can be 1024 bytes  (double density floppies),  2048
  391. bytes  (hard drive |spartition|ss  between 16M  and 128M),  4096 bytes  (hard
  392. drive |spartition|ss smaller than 16M  or between 128M and 256M),  8192 bytes
  393. (256M to 512M), or 16,384 bytes (larger than 512M hard drive |spartition|ss).
  394. You see,  since every |ncluster|n of a disk has to have a FAT entry,  then if
  395. the size of  the |ncluster|n  was only the same  as the |ssector|s size,  the FAT
  396. would have to be  awfully big to hold an entry  for every |ncluster|n  of the
  397. disk.
  398.  
  399. So for most |ndisks|n,  DOS uses clusters  that are larger  than the |ssector|ss.
  400.                         <page down> for more Disks
  401. That way the FAT can remain at a reasonable size.   But there's a problem
  402. with that.   Since there can only be one filename in each FAT entry,  DOS
  403. wastes a lot of space on hard drives.   A bunch of space even gets wasted
  404. on floppy |ndisks|n too, but not as much, because of the smaller clusters.
  405.  
  406. If you write a 27-byte file to disk,  it takes up a whole cluster of disk
  407. space because there is only one FAT entry for each cluster, and there can
  408. only be one file  for each FAT entry.   So on a floppy disk with 512-byte
  409. clusters,  that 27-byte file  causes 485 bytes worth  of disk space to be
  410. wasted!   (That's called "|tslack space|t".)   On most hard |ndisks|n the cluster
  411. size is 4 |ssector|ss,  or 2048 bytes,  so that 27-byte file  is wasting 2021
  412. bytes of disk space!  It boggles the mind, doesn't it?
  413.  
  414. If you have  a hard drive  that is 16M  or smaller,  then DOS is probably
  415. giving you  4096-byte clusters!   That 27-byte file  is now wasting  4069
  416. bytes of disk space!   Even if you have  a very large hard drive,  if you
  417. have it partitioned  into logical drives  that are smaller than 16M,  you
  418. still have that ridiculous 8-|ssector|s cluster size.   You'd better get your
  419. drive repartitioned if you can!  The FDISK command can do that.  The same
  420.                         <page down> for more Disks
  421. 8-|ssector|s cluster size goes for |spartition|ss between 128M and 256M too,  and
  422. larger |spartition|ss than that get even huger cluster sizes!
  423.  
  424. This is why sometimes when you're trying to copy 357K worth of files to a
  425. 360K disk, you can sometimes get a "|tdisk full|t" error message.   (See also
  426. Directory.)   Now that one is really confusing unless you know this about
  427. how DOS won't use up the end of a cluster for a new file  if there is al-
  428. ready a file using up part of that cluster.
  429.  
  430. This is also  why it's important  to try  to combine  all your teeny tiny
  431. batch files into  one big batch file.   I have one batch file (other than
  432. |sAUTOEXEC.BAT|s)  on my entire  hard drive,  and it can perform 49 different
  433. functions.   Its size is 12,538 so it takes up 7 clusters or 14,336 bytes
  434. worth of disk space.   If I had it all  broken down into  49 batch files,
  435. the way  most people do,  it would be  taking up  49 clusters  or 100,352
  436. bytes of disk space!   See the section on the  GOTO command to see how to
  437. combine the small batch files into one large one like that.
  438.  
  439.  
  440.              <page down> for The |nFile Creation Error|n Message
  441.                      The |tFile Creation Error|t Message
  442.  
  443. This message comes  when DOS tries to create a file and fails.   This can
  444. happen for several reasons.   The most common,  at least for me,  is when
  445. you try to COPY a file over top of another file,  but the target copy has
  446. its Read-only attribute set.   Well what happens is that  first DOS tries
  447. to copy the new file over the old one, but since the old one is Read-only
  448. that won't work,  so DOS tries  to create  a new file  by that same name.
  449. But since you can't have  more than one file by the same name in one dir-
  450. ectory, that causes this error.   If this happens to you,  use the ATTRIB
  451. command to remove the Read-only attribute from that target file, and then
  452. you'll be able to copy over it.  Think about it for a second first though
  453. because Read-only attributes generally don't get set without a reason.
  454.  
  455. Another thing that can cause this error is if the disk is full, or if the
  456. root directory is full.   Remember you can only have  a limited number of
  457. files in a root directory.  But if you're trying to copy a file to a sub-
  458. |ndirectory|n,  and none of these other reasons pan out,  then use the CHKDSK
  459. command to see if the subdirectory has a problem of some sort.
  460.                        <page down> for The |nKeyboard|n
  461.                                The |tKeyboard|t
  462.  
  463. Well, you know what the |nkeyboard|n is,  so why am I writing a chapter about
  464. it?   Well there are quite a few things you might not know about it, even
  465. though all its keys are labeled.
  466.  
  467. First,  the most important thing  that's not written on the |nkeyboard|n,  is
  468. that you can  BREAK out of many programs  by holding down  the <Ctrl> key
  469. while  pressing the <C>  or <Break> keys.   (The <Break> key  is up there
  470. near the <PrtScrn> key,  usually on  the same physical key  with <Pause>.
  471. If you're not pressing <Ctrl> when you hit that key, it means <Pause>, or
  472. if you are pressing <Ctrl>, then that key means <Break>.)  This keystroke
  473. combination  can be abbreviated  as <Ctrl-C> or <Ctrl-Break>,  and if you
  474. want to get out of  nearly any DOS command,  and many other commands too,
  475. this  keystroke  will usually  take you  straight  back  to a DOS prompt.
  476. There is a difference between <Ctrl-C> and <Ctrl-Break>, though.   If you
  477. have already  entered  some keystrokes  that haven't  been processed yet,
  478. that is, if you're typing faster than the computer is computing,  the un-
  479. processed keystrokes are still sitting in the |nkeyboard|n buffer.  Well, the
  480.                       <page down> for more Keyboard
  481. <Ctrl-C> keystroke will sit there at the end of the buffer, just like any
  482. other keystroke, waiting for its turn to be processed.   But <Ctrl-Break>
  483. will cut in front  of everybody else in line.   So it will work sometimes
  484. when <Ctrl-C> won't.
  485.  
  486. If your computer  is spitting out  a bunch of data  onto the screen a lot
  487. faster than you can read it,  you can stop it with the <Pause> key if you
  488. have one, or else the <Ctrl-S> combination.   Press any other key to make
  489. the screen  start going again.   (Sometimes  you have to  use <Ctrl-Q> to
  490. make it start going again after using <Ctrl-S>.)
  491.  
  492. <Ctrl-Z> or <F6> will give you  a symbol that looks like  ^Z which is the
  493. End-of-File character.  (The caret (^) symbol means <Ctrl>).   If you are
  494. using the COPY CON command,  or the SORT command  without any redirection
  495. of input,  then ^Z is what tells DOS  you're done entering data  from the
  496. |nkeyboard|n as far as that specific COPY CON or SORT operation is concerned.
  497.  
  498. The <Esc> key, at the DOS command line,  will cancel what you were typing
  499. and move the cursor down one line  so that you can start over on the com-
  500.                       <page down> for more Keyboard
  501. mand you were getting ready to enter.
  502.  
  503. In a lot of programs, you can enter ASCII symbols that aren't on the key-
  504. board,  by holding down the <Alt> key,  and typing the  ASCII code on the
  505. numeric keypad,  and then letting up on the <Alt> key.   For example,  if
  506. you use this method to type <Alt-20>, you get the  character.   A really
  507. interesting use for this fact is with ASCII character 255.  It's called a
  508. blank.  It looks like a <Space>, but it's not.  It's an actual character,
  509. and it's even valid in filenames.   So you can use it as a primitive sort
  510. of security.   You never want to use it in the middle of a filename,  be-
  511. cause everybody knows that  a <Space> is not  a legal filename character,
  512. so anyone who sees a filename like MY STUFF.TXT is going to realize right
  513. away that it's an <Alt-255> instead of a <Space> in there.  But since DOS
  514. displays filenames in DIR listings in two columns, with spaces between, a
  515. filename like MYSTUFF<Alt-255>.TXT will look like "MYSTUFF  TXT" and any-
  516. one who's not really familiar with the <Alt-255> trick won't realize that
  517. filename is anything other than MYSTUFF.TXT.   Well there's still another
  518. problem with this.   If you have DOS 5 and a body used the /B or /W swit-
  519. ches  with the DIR command,  that filename will look like  "MYSTUFF .TXT"
  520.                       <page down> for more Keyboard
  521. and once again, anyone who knows about <Alt-255> will figure it out right
  522. away.   The same thing would happen with the output of the CHKDSK command
  523. with the /V switch.   But,  if you don't give  the filename an extension,
  524. then MYSTUFF<Alt-255>  will look exactly like MYSTUFF in any sort of dir-
  525. ectory listing.   This is good for directory names, too.   You could name
  526. a directory  PCT<Alt-255><Alt-255><Alt-255>,  and even someone  who knows
  527. about the  <Alt-255> trick  won't be all that likely to try three of them
  528. in a row like that.   Well this method  of protection is good  if all the
  529. other people  who use your computer are really beginners,  who don't know
  530. about <Alt-255>, but it's still a pain to live with it.  Because you have
  531. to type the <Alt-255> part of the filename or directory name,  every time
  532. you want  to access it.   You even have to  include the  <Alt-255> in the
  533. name,  on your PATH command in AUTOEXEC.BAT if you want that directory to
  534. be on the path.
  535.  
  536. If you have a numeric keypad,  then you have  a <NumLock> key  to control
  537. it.   If <NumLock> is on, then the numeric keypad will type numbers.   If
  538. it is off,  the arrows and other functions  on the numeric keypad will be
  539. activated.   Most newer computers will boot up  with the <NumLock> key on
  540.                       <page down> for more Keyboard
  541. automatically,  but there are tons of little public domain utilities that
  542. you can use  as commands  in your AUTOEXEC.BAT file,  to turn it back off
  543. again.   The same goes for the <CapsLock> key, if you want to always boot
  544. up with it on.
  545.  
  546. <ScrollLock> has practically no use.   For software programs that use it,
  547. it works this way:  with the key set one way, when you use the arrow keys
  548. to scroll through a file, the cursor will stay right on the same place on
  549. the screen, changing lines as the lines go by.  With the <ScrollLock> key
  550. set the other way, when you scroll through the file, the cursor will move
  551. on the screen, staying on the same line of text,  or until that line gets
  552. to the edge of the screen, anyway.
  553.  
  554. The <PrtScrn> key, or on some computers, the <Shift-PrtScrn> combination,
  555. will cause the computer  to send a copy of  whatever's on your screen  to
  556. the PRN device.  If the PRN device is not connected, is not turned on, or
  557. is not online,  your whole system could just hang until the print request
  558. times out.   If trying to print a graphics screen  causes your printer to
  559. go nuts, then try the GRAPHICS command first.
  560.                       <page down> for more Keyboard
  561. The <Ctrl-Alt-Del> keystroke combination will reboot your computer.
  562.  
  563. The <F1>  through <F10>  Function keys have different functions according
  564. to what software program you're running at the moment, but when you're in
  565. DOS,  they have their own functions.   (See editing keys.)   You can also
  566. program them to do whatever you want them to do, with ANSI.SYS.
  567.  
  568. The <F11> and <F12> Function keys don't do anything, as far as most soft-
  569. ware programs are concerned.
  570.  
  571. The <Enter> key has lots of names.   <Return>  and <Carriage Return>  and
  572. <CR> are just a couple.   Some keyboards  have just  an arrow like ─┘ on
  573. that key instead of a word.  It's the one over on the right of the alpha-
  574. bet keys,  between the Right <Shift> and the <Backspace> keys,  and it is
  575. nearly the most important key you have.   It's what tells DOS you're done
  576. typing a command, and that you want DOS to execute that command now.
  577.  
  578. <Ctrl-P> will toggle printer echoing.  That means it will cause the prin-
  579. ter to start printing everything that appears on your screen.  To make it
  580.                       <page down> for more Keyboard
  581. stop doing that, press <Ctrl-P> again.
  582.  
  583. A lot of books  will tell you to find a key that looks like │ in order to
  584. perform an operation called piping, which is a form of redirection.  Well
  585. the key you're looking for looks like || instead of │,  but the books just
  586. can't print  a || character I guess.   The || character is the <Shift> ver-
  587. sion of the backslash (\),  and its location depends on  the |nkeyboard|n you
  588. use.  It's one of those keys that move around from brand to brand of key-
  589. board.   Most keys are in the same place no matter what kind of |nkeyboard|n,
  590. but not that one.  On the three keyboards I've used extensively, that key
  591. has been located in  three different places.   Once near the <Backspace>,
  592. once below the <Enter>, and once in the lower lefthand corner.  Sheesh!
  593.  
  594. Always remember that  when you see  the symbol ^C or ^Z  or anything like
  595. that, it means <Ctrl-C> or <Ctrl-Z>, not the <Shift>ed 6 ^ symbol.
  596.  
  597. If your |nkeyboard|n acts up after you get DOS 5, pretending like CAPS LOCK's
  598. on when it's not and things like that, try the command KEYB US /E (or use
  599. LOADHIGH with it since it's a |sTSR|s) in your AUTOEXEC.BAT file.
  600.              <page down> for How Does |nMagnetism|n Affect Disks?
  601.                      How Does |tMagnetism|t Affect |sDisks|s?
  602.  
  603. Well, |nmagnetism|n is what puts the data onto your disks.   So obviously any
  604. magnetic field can change the data that's on a disk.   They make a device
  605. called a degausser,  which is just  a strong magnet,  to totally and com-
  606. pletely erase a disk.  (Quite often a disk that just won't FORMAT proper-
  607. ly can be fixed up by a magnet.   It will erase  all traces  of any data,
  608. or even the previous format itself,  so that the disk is just as blank as
  609. when you bought it, and now it will format properly.)   If you need a de-
  610. gausser and don't have one, a stereo speaker generally works pretty well.
  611. Just lean  your disk up against it  and crank up  some Judas Priest,  and
  612. your disk ought to get degaussed.
  613.  
  614. All right,  so obviously you don't want  to tack a disk up to the side of
  615. your filing cabinet with a magnet, but what else do you want to watch out
  616. for?  Well your monitor is about the worst culprit.  There's a tremendous
  617. magnetic field  in there,  and it comes out especially strongly  from the
  618. back and the top.  If you have one of those old phones that has an actual
  619. bell-like ring,  rather than one  of the newer electronic  beeping rings,
  620.                       <page down> for more Magnetism
  621. then your phone gives a pretty decent magnetic field every time it rings.
  622. Some people say  that even the cord  running from the phone  to the wall,
  623. and speaker wires, and any sort of electric wire, also give off a magnet-
  624. ic field.   I don't know  if that's true  or not,  but,  better safe than
  625. sorry, eh?
  626.  
  627. Just about anything electrical,  especially anything  with a motor in it,
  628. causes a magnetic field.  Yes, that includes your printer and your fluor-
  629. escent desk lamp.   (Fluorescent lamps do  some really strange  things to
  630. your monitor, too, if it's sitting too close.)
  631.  
  632. Well gosh, you say, there's electricity everywhere!  How am I supposed to
  633. keep any data on my |sdisks|s?   Well, it's really not as bad as I've made it
  634. sound.   All of these things can possibly wipe the data from a disk,  but
  635. it doesn't happen  that often.   The disk has to be exposed  to the field
  636. for a while before anything usually happens to the data, depending on the
  637. strength of the field.   Just don't lean a disk up against the phone,  or
  638. set it on top  of the printer,  for more than  a couple minutes.   Try to
  639. keep your disks at least a foot away  from all the things I've mentioned,
  640.                       <page down> for more Magnetism
  641. but you  don't necessarily  have to panic  if you forget  and lean a disk
  642. against your electric stapler for a minute.
  643.  
  644. Also remember that a pattern of magnetic particles  (your data) on a disk
  645. will tend to fade over time.  The older a disk is, the easier it would be
  646. for a magnetic field to trash your data,  because the pattern of magnetic
  647. particles  has begun to fade.   That's why you ought  to refresh all your
  648. floppies every couple years  by using the PC Tools  PCFORMAT command with
  649. the /R switch.   (I would imagine that the Norton Utilities has a similar
  650. feature as well; I just don't know what it's named.)  This will read each
  651. track's worth of data into memory,  format that track, and then write the
  652. data from memory back to the floppy disk at full strength.
  653.  
  654. This also needs to be done to a hard drive every couple years (unless you
  655. have one of the new IDE drives  which must never be |nLow-Level|n Formatted).
  656. But the FORMAT command won't do it.  Because you see, in a hard disk, the
  657. format is done  in two separate steps.   You could think of the |tLow-Level|t
  658. Format as putting a coat of sealant on the parking lot  before the FORMAT
  659. command paints the lines on the lot.  On floppy disks, the FORMAT command
  660.                       <page down> for more Magnetism
  661. performs both of those steps, but not on a hard disk.
  662.  
  663. There are utilities  such as SpinRite  and one of the features  of Norton
  664. Utilities, and version 7 of PC Tools, that will do a Low-Level Format the
  665. same way the /R switch of PCFORMAT works--it reads one track of data into
  666. memory,  formats that track,  and then writes the data  back to the disk.
  667. That means  your data most likely  will not be lost  during the Low-Level
  668. Formatting process.
  669.  
  670. In general though, a Low-Level Format will erase every speck of data from
  671. a disk,  so thoroughly that no  recovery utility in the world  can get it
  672. back.  So here are the steps to follow to perform a Low-Level Format:
  673.           1.  BACKUP
  674.           2.  Low-Level Format
  675.               How,  you say?   Well most hard drive controllers  have the
  676. code  which performs a Low-Level Format  stored in a ROM chip right there
  677. on the controller.   You can use DOS's DEBUG command  to access it.   The
  678. instructions  and the applicable ROM memory address will be  found in the
  679. literature that came  with your drive,  or you can contact  the dealer or
  680.                       <page down> for more Magnetism
  681. the manufacturer.
  682.           3.  FDISK
  683.           4.  FORMAT C: /S
  684.           5.  Mark out |sBad Sector|ss!
  685.               The FORMAT command does not always find all of the unusable
  686. |ssector|ss!   Before you restore your data from your backup disks,  you need
  687. to run some disk diagnostic utility,  such as the Surface Scan  option of
  688. PC Tools DISKFIX,  to check the whole drive for |sbad sector|ss and mark them
  689. as "bad" in the FAT so that DOS won't put any of your data in a bad spot.
  690. The FORMAT command  is supposed to do this for you,  but it's not totally
  691. reliable.  So if you have such a utility, use it at this time!
  692.           6.  RESTORE
  693. That's all!   Now you have a nice fresh hard drive  with nice fresh data!
  694. But remember,  don't ever do a Low-Level Format if you have an IDE drive,
  695. and don't ever do it without having a complete backup!   Even the non-de-
  696. structive  Low-Level Formats  like SpinRite can  goof up once in a while!
  697. Don't worry about the fact that you mustn't Low-Level an IDE drive.  They
  698. use a different type of technology than older drives, and they don't have
  699. any need to be Low-Levelled.  So it's ok that you can't do it.
  700.                     <page down> for Numbering Systems
  701.                             Numbering Systems
  702.  
  703. You don't have to know this stuff if you don't want to.  Well it is pret-
  704. ty important, but not learning it is not going to make your computer use-
  705. less or anything.
  706.  
  707. The |tdecimal|t numbering system  is the one you've been using all your life.
  708. It uses ten (10) as its base number.   (There are ten symbols in our num-
  709. bering system:  0, 1, 2, 3, 4, 5, 6, 7, 8, and 9.)   That means that in a
  710. multi-digit number,  the rightmost digit  tells how many multiples of 10-
  711. to-the-0th-|npower|n  are in the number.   (N^0=1)   The first digit from the
  712. right tells how many multiples of  10-to-the-1st-|npower|n are in the number.
  713. (N^1=N)   The second digit from the right tells how many multiples of 10-
  714. to-the-2nd-|npower|n are in the number.  (N^2=NxN)   The third digit from the
  715. right tells how many  multiples of 10-to-the-3rd-|npower|n are in the number.
  716. (N^3=NxNxN)  Et cetera.  (In math, the symbol ^N means to-the-Nth-|npower|n.)
  717.  
  718. All right, suppose we have a number in the |ndecimal|n system that looks like
  719. 589,236.  Well, what does that number mean?
  720.             <page down> for more Decimal, Binary, Hexadecimal
  721.           5     4     3     2     1     0---how many digits from right
  722.           5     8     9     2     3     6---the digits in the number
  723.                                         6x10^0=6x1=6
  724.                                   3x10^1=3x10=30
  725.                             2x10^2=2x100=200
  726.                       9x10^3=9x1000=9000
  727.                 8x10^4=8x10000=80000
  728.           5x10^5=5x100000=500000
  729. Now,  add up the totals from each line,  and you've got 589,236.   That's
  730. right,  that's just the number  we started with.   That's because we just
  731. converted a |ndecimal|n number right back to a |ndecimal|n value.
  732.  
  733. But computers  can't deal with  the |ndecimal|n system.   A computer can only
  734. distinguish between  two things.   Either a particular circuit  has power
  735. running through it, or it doesn't.   Either on or off.   One or zero.  So
  736. computers use the |tbinary|t numbering system.   |nBinary|n means two, so the bi-
  737. nary system has  only two different digits.   Zero, and one.   That's all
  738. there is.   There is no 2, no 3, no 4, nothing but 0 and 1.  What kind of
  739. numbers can you make with only two possible symbols?  Any numbers you can
  740.             <page down> for more Decimal, Binary, Hexadecimal
  741. make with ten symbols.  It just takes more digits to do it.
  742.  
  743. So, suppose we have a |nbinary|n number like 10110101101.  What does it mean?
  744.           10   9   8   7   6   5   4   3   2   1   0
  745.            1   0   1   1   0   1   0   1   1   0   1
  746.                                                    1x2^0=1x1=1
  747.                                                0x2^1=0x2=0
  748.                                             1x2^2=1x4=4
  749.                                        1x2^3=1x8=8
  750.                                    0x2^4=0x16=0
  751.                                1x2^5=1x32=32
  752.                            0x2^6=0x64=0
  753.                        1x2^7=1x128=128
  754.                    1x2^8=1x256=256
  755.                0x2^9=0x512=0
  756.            1x2^10=1x1024=1024
  757. Now, add up the totals from each line, and you've got 1453.   You've just
  758. converted a number from |nbinary|n to decimal!  Aren't you proud?
  759.  
  760.             <page down> for more Decimal, Binary, Hexadecimal
  761. Now we're going to convert  that |ndecimal|n number  back to binary!   Aren't
  762. you excited about that prospect?  Here goes.   Well, we know that 1453 is
  763. larger than 2^10.   But is it larger than 2^11?   Well 2^11=2048,  so no,
  764. our  |nbinary|n number  won't need  an eleventh digit.   (It will have eleven
  765. digits,  but the first one  is the zeroth digit,  so the eleventh one  is
  766. digit number ten.   Clear as mud, right?)   All right, we know that we're
  767. going to need a 1 in the tenth digit,  because our number  is larger than
  768. 2^10 which is 1024.   So, subtract 1024 from our number,  and we have 429
  769. left.   Well,  do we need a one in the ninth digit?   2^9=512, and 429 is
  770. less than that, so no,  we won't need a number in the ninth digit.   Fill
  771. it up with a zero.   What about  the eighth digit?   2^8=256,  and 429 is
  772. larger than that,  so we need a one in the eighth digit.   429-256=173 so
  773. that's the next number we're going to work with.  Do we need a one in the
  774. seventh digit?  2^7=128,  and 173 is larger than that so we do need a one
  775. in the seventh digit.  173-128=45.  2^6=64, so we don't need a one in the
  776. sixth digit.  Fill that space with a zero.   2^5=32 and 45 is larger than
  777. that,  so we need a one in the fifth digit.   45-32=13 and 2^4=16, so the
  778. fourth digit gets a zero.   2^3=8 and 13 is larger than that so the third
  779. digit gets a one.   13-8=5 and 2^2=4 so the second digit gets a one.  5-4
  780.             <page down> for more Decimal, Binary, Hexadecimal
  781. =1 and 2^1=2 so the first digit from the right gets a zero,  and 2^0 is 1
  782. and 1 is what we had left,  so the rightmost digit gets a 1.   So, here's
  783. what we've got:  10110101101  Yep, that's just what we started with!
  784.  
  785. Ok, now to the |thexadecimal|t system of numbering.   Hex means six and deci-
  786. mal means ten  so |nhexadecimal|n  means sixteen.   That's the base number of
  787. this system,  just like ten is the base  in the |ndecimal|n system and two is
  788. the base in the |nbinary|n system.  There are sixteen symbols in the hex sys-
  789. tem:   0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E,  and F.   We use this
  790. system with computers a lot because it's a lot closer to |nbinary|n than dec-
  791. imal is,  since sixteen is two to the fourth |npower|n and ten is not an even
  792. |npower|n of two at all.   But yet,  hex is definitely closer to |ndecimal|n too,
  793. since you don't  have to use  eleven digits just to represent  the number
  794. 1453 like you do in |nbinary|n.
  795.  
  796. So, if we have a hex number like 3FA8C, what does it mean?
  797.  
  798.  
  799.  
  800.             <page down> for more Decimal, Binary, Hexadecimal
  801.            4     3     2     1     0--how many digits from right
  802.            3     F     A     8     C--the digits in the number
  803.            3    15    10     8    12--|ndecimal|n representation of hex digit
  804.                                   12x16^0=12x1=12
  805.                              8x16^1=8x16=128
  806.                       10x16^2=10x256=2560
  807.                 15x16^3=15x4096=61440
  808.            3x16^4=3x65536=196608
  809. All right,  add up those totals  from each line,  and you've got  260748.
  810. That's what  3FA8C hex is,  in |ndecimal|n.   Want to convert  260748 back to
  811. hex?  I knew you did.  Ok, let's go.
  812.  
  813. Well 16^5=1048576 and 260748 is much less than that,  so we will not need
  814. a fifth digit at all.   16^4=65536  and 260748 is larger than that  so we
  815. will need a fourth digit, but what number should go in that digit?   Div-
  816. ide 260748 by 65536, and you see that we need a 3 in that digit.   What's
  817. left over after we subtract 3x65536 from 260748?  64140.  Well, 16^3=4096
  818. and 64140 is way bigger than that,  so we won't want  a zero in the third
  819. digit,  but what do we want to put there?   Divide 64140 by 4096,  and we
  820.             <page down> for more Decimal, Binary, Hexadecimal
  821. get a 15 which is an F in hex.  Now, subtract 15x4096 from 64140, and our
  822. remainder is 2700.   16^2=256 and 2700 is lots bigger than that.  Do your
  823. division, and 10 |ndecimal|n or A hex goes in the second digit, with 140 left
  824. over.  16^1=16 and 140 is bigger than that.  Divide.   The first digit is
  825. 8 with 12 left over, and 12 in hex is C so that's the zeroth digit.   Put
  826. it all together and you've got 3FA8C.   Yep,  that's what we had to begin
  827. with, so the conversion worked perfectly.  Whew!
  828.  
  829. If you don't understand how it is  that we're doing this decimal-to-what-
  830. ever  conversion stuff,  maybe it would help  if we tried  using the same
  831. method to convert  a |ndecimal|n number to decimal?   Let's try it,  with the
  832. number 857203.   Well 10^6=1000000 and 857203 isn't that big, so we won't
  833. need any number in  the sixth digit.   10^5=100000  and 857203 is  bigger
  834. than that  so what number  do we need in the fifth digit?   Divide 857203
  835. by 100000 and you get 8.   So subtract 8x100000 from 857203  and you have
  836. 57203 left.   10^4=10000 and 57203 is larger than that, and if you divide
  837. 57203 by 10000, you get a 5 for the fourth digit,  and if you subtract 5x
  838. 10000 from 57203 you have 7203 left.   Well, 10^3=1000 and 7203 is larger
  839. than that,  so if you divide 7203 by 1000  you get 7  so that's the third
  840.             <page down> for more Decimal, Binary, Hexadecimal
  841. digit,  and if you subtract 7x1000 from 7203 you get 203.   Well 10^2=100
  842. and if you divide  203 by 100  you get a 2  for the second digit,  with 3
  843. left over.   10^1=10  and 3 is not that big  so a zero goes  in the first
  844. digit from the leftmost one.   10^0=1 and 3 is 3 times that,  so a 3 goes
  845. in the zeroth digit.  Put them all together, and you've got 857203.
  846.  
  847. Ok, should we do the octal system of numbers next?  Well octal means 8 so
  848. the octal system  has eight digits.   0, 1, 2, 3, 4, 5, 6,  and 7.   I'll
  849. leave the rest of it up to you  if you're interested.   It works just the
  850. same way as the other systems.
  851.  
  852. Just one more thing.   If you ever need to convert  an eight-digit |nbinary|n
  853. number to hex,  or convert a two-digit  hex number to  |nbinary|n,  there's a
  854. very easy way to do it.   First,  each digit in a |nbinary|n number is a bit.
  855. Eight |nBInary|n digiTS (bits) is a byte.   Four |nbinary|n digits,  half a byte,
  856. is a nibble,  believe it or not.   Well if you have  a |nbinary|n number like
  857. 10110011,  first divide that  into two nibbles.   The leftmost  nibble is
  858. 1011 and the rightmost nibble is 0011.   Now,  all you have to do to con-
  859. vert that whole byte  to hex,  is to convert  the left nibble to hex  and
  860.             <page down> for more Decimal, Binary, Hexadecimal
  861. convert the right nibble to hex, and stick those two numbers together.
  862.           1011                                 0011
  863.              1x2^0=1x1=1                          1x2^0=1x1=1
  864.             1x2^1=1x2=2                          1x2^1=1x2=2
  865.            0x2^2=0x4=0                          0x2^2=0x4=0
  866.           1x2^3=1x8=8                          0x2^3=0x8=0
  867.          total=11 decimal=B hex               total=3 decimal=3 hex
  868. So, 10110011 in |nbinary|n equals B3 in |nhexadecimal|n.   To convert a two-digit
  869. hex number to |nbinary|n,  just do the opposite.   Convert the  left digit to
  870. |ndecimal|n and then |nbinary|n,  and convert the right digit to |ndecimal|n and then
  871. |nbinary|n and stick the righthand |nbinary|n number  up against the right of the
  872. lefthand |nbinary|n number, and there you go.
  873.  
  874. So,  did you notice anything familiar  in that section on |nbinary|n numbers?
  875. Did the numbers 64, 128, 256, 512, or especially 1024 ring a bell?   Have
  876. you ever wondered why a kilobyte  is equal to such a silly number as 1024
  877. bytes, instead of 1000 |sbytes|s?   That's because computers do things in bi-
  878. nary, not |ndecimal|n.   The number 1000 in |ndecimal|n, is 1111101000 in |nbinary|n.
  879. We don't want to make  the computer try to work  with a number like that,
  880.             <page down> for more Decimal, Binary, Hexadecimal
  881. do we?   While two to the tenth |npower|n is 1024 in |ndecimal|n,  in |nbinary|n it's
  882. 10000000000 and that's a nice easy round number for the computer.
  883.  
  884. Those other numbers I mentioned  are going to end up being  very familiar
  885. to you as well if you pay any attention at all to what your computer does
  886. with memory  and disk space and stuff.   512 is 2^9,  256 is 2^8,  128 is
  887. 2^7,  and 64 is 2^6  and they are very common numbers  when talking about
  888. memory.   As far as the computer is concerned, they are the round numbers
  889. 1000000000,  100000000, 10000000,  and 1000000 and it's only because they
  890. have been translated into |ndecimal|n that they seem to be nonsense.
  891.  
  892. When you see  something like 10h or 10H  that means the number 10 in hex-
  893. adecimal,  which is 16 in |ndecimal|n.   Some books will even say 10d or 10D,
  894. to avoid ambiguity even when they're talking about |ndecimal|n numbers.
  895.  
  896.  
  897.  
  898.  
  899.  
  900.                    <page down> for What Are Parameters?
  901.                            What Are |tParameters|t?
  902.  
  903. |nParameters|n are anything that comes after the command on the command line.
  904. They tell DOS what you want to do with the command.   Take, for instance,
  905. the COPY command.   You can't just tell DOS to  "copy".   You have to say
  906. what you want to copy and where you want it copied to.  So you might give
  907. a command like COPY A:FILE.TXT B:, which tells DOS to copy the file named
  908. FILE.TXT which is on the A: drive,  over to the B: drive.   In this case,
  909. "A:FILE.TXT" is the parameter that tells DOS the source for the COPY com-
  910. mand, and "B:" is the parameter that tells the target.
  911.  
  912. There is another type of parameter called a "switch".  The /P in the com-
  913. mand  DIR /P is a switch that tells DOS to  "pause" after 23 lines of the
  914. output of the DIR command, so that you have time to see what it says, and
  915. then you strike any key  to make the display continue on with the next 23
  916. lines.
  917.  
  918. DOS always uses "/"  as the switch character,  but some programs, such as
  919. the compression utility PKZIP, use "-" as in PKZIP -a FILE *.*.  A switch
  920.                      <page down> for more Parameters
  921. is just a parameter that tells the program to "do its thing" in a slight-
  922. ly different way than normal.
  923.  
  924. The first "word" that is typed on the command line  after the name of the
  925. command is parameter number one,  and the second "word" is parameter two,
  926. etc.   By "word" I mean something that is surrounded by spaces.   So even
  927. though  you wouldn't normally  think of "B:"  as being a "word",  in this
  928. case it is,  since in the command  COPY A:FILE.TXT B: it is surrounded by
  929. spaces.  So it is parameter number two.
  930.  
  931. |tReplaceable|t |nparameters|n  are very useful  in batch files.   What this term
  932. means is a little symbol in a batch file  that looks like %1 or %2 and it
  933. is "replaced" by whatever you happened to type as parameter number one or
  934. number two on the command line.  An example would be the best definition.
  935.  
  936. Suppose you create a batch file called AB.BAT that looks like this:
  937.           @|sECHO|s OFF
  938.           COPY A:%1 B:
  939. Now if you were to type this command on the command line:
  940.                      <page down> for more Parameters
  941.           AB FILE.TXT
  942. Then, when DOS is processing  that command,  it sees the %1 symbol inside
  943. the batch file  and looks  back on  the command line  to see what you had
  944. typed as the first "word" after the command AB,  and it sees FILE.TXT, so
  945. it puts FILE.TXT there where the batch file says %1, and this is the com-
  946. mand that DOS executes:
  947.           COPY A:FILE.TXT B:
  948. Now suppose the next time you run that AB.BAT file,  you use this command
  949. instead:
  950.           AB HELLO.TXT
  951. This time when DOS gets to the line that has the %1 symbol,  and looks on
  952. the command line and sees HELLO.TXT as the first parameter,  then this is
  953. the command that gets executed:
  954.           COPY A:HELLO.TXT B:
  955.  
  956. Now you can see that a file like AB.BAT is not going to save you all that
  957. much typing, but how about a command like PROMPT $e[1;32;40m.  That's the
  958. command you want to use to change your DOS colors to bold green on black.
  959. Not  exactly an  easy-to-remember  command.   You can create a batch file
  960.                      <page down> for more Parameters
  961. that will remember that command for you, like this COLOR.BAT:
  962.           @|sPROMPT|s $e[1;3%1;4%2m
  963.                     (leave a blank line here!)
  964.           @|sECHO|s OFF
  965.           PROMPT $P$G
  966. Now if you were to type COLOR 2 0 on the command line,  DOS would put the
  967. 2 in place of the %1, and 0 in place of the %2, and that same $e[1;32;40m
  968. parameter for the PROMPT command  would be used,  without your memorizing
  969. that complicated syntax.  Just don't forget to leave that blank line.
  970.  
  971. If you got  bored with green-on-black,  you could just type COLOR 7 4 and
  972. DOS would put the 7 where the %1 is, and 4 where the %2 is, and this time
  973. you'd get  bold white on blue.   (See the subject  ANSI.SYS for the color
  974. codes and further information about how to change your DOS colors.)
  975.  
  976. You can use  replaceable |nparameters|n to  take the place  of any part  of a
  977. command,  even the  command itself.   Suppose you do  a lot of changes on
  978. your AUTOEXEC.BAT file,  and you're tired of  typing that filename.   You
  979. could have a batch file called AEB.BAT that looks like this:
  980.                      <page down> for more Parameters
  981.           @|sECHO|s OFF
  982.           %1 AUTOEXEC.BAT %2
  983. Now if you typed AEB TYPE,  then the command  TYPE AUTOEXEC.BAT  would be
  984. executed,  or if you  typed  AEB EDLIN,  then EDLIN AUTOEXEC.BAT would be
  985. executed,  because  if there is no third word  typed on the command line,
  986. then %2 equals nothing,  so having that  %2 sitting there won't cause any
  987. trouble.   If you typed the command  AEB COPY B:,  then the  command COPY
  988. AUTOEXEC.BAT B:  would be executed,  and you'd have a backup copy of your
  989. file, for in case the copy on your hard drive gets damaged in some way.
  990.  
  991. Replaceable |nparameters|n  are one of my favorite toys in DOS.   There are a
  992. zillion things you can use them for.   The parameter %0 always stands for
  993. the name of the batch file that contains the %0 symbol, since the name of
  994. the batch file  is the first "word"  on the command line,  and  %0 is the
  995. first replaceable parameter.  But other than that,  you can use the other
  996. replaceable |nparameters|n, %1 through %9, for anything your heart desires.
  997.  
  998. See also GOTO and SHIFT.
  999.  
  1000.            <page down> for Why Do I Need to |nPark|n My Hard Drive?
  1001.                    Why Do I Need to |tPark|t My Hard Drive?
  1002.  
  1003. A hard drive  is sort of like a record player,  in that it has some disks
  1004. that hold information,  and heads that move on an arm to read that infor-
  1005. mation.   Only  the read/write heads  on the  hard drive  float  a hair's
  1006. breadth above the surface of the disks.
  1007.  
  1008. Now when someone bumps into the computer,  the heads might get jarred and
  1009. crash  into the surface  of the disk,  which would most likely damage the
  1010. data in that spot of the disk, and the heads, and even the disk itself.
  1011.  
  1012. If there's a power surge in the electric lines,  a shock might go through
  1013. the computer, including the heads on the disk, and that would also damage
  1014. the data in whatever spot the heads happened to be above  at that moment.
  1015.  
  1016. When you turn off the computer's power,  the drive stops spinning, and so
  1017. there is no air |ncurrent|n  to keep the heads floating  above the disk,  and
  1018. they land.  And when you start the computer up again, the heads are still
  1019. resting on the disk as it starts to spin,  until it gets to spinning fast
  1020.                         <page down> for more Park
  1021. enough to create the air |ncurrent|n that causes the heads to float.   Again,
  1022. whatever data is under those heads  as the disk scrapes along under them,
  1023. can be damaged.  Even that spot of the disk itself can be damaged.
  1024.  
  1025. And every time you turn on the power to your computer,  there is a sudden
  1026. shock  of voltage moving through  all parts of  the computer's circuitry.
  1027. Again,  whatever part  of the disk the heads happen  to be sitting above,
  1028. could very well lose its data.
  1029.  
  1030. Parking a hard drive means that the read/write heads are moved over to an
  1031. area of the disk called the landing zone, so that any of these events can
  1032. happen and no data will  be damaged.   Only an unused portion of the disk
  1033. might be damaged.  No problem.  Some people think  that parking the drive
  1034. means  stopping the spinning.   Nope,  it keeps  right on spinning at the
  1035. same speed  as always  (3600 revolutions per minute),  it's just that the
  1036. part of the disk the heads are sitting above  is the blank space near the
  1037. center of the disk.
  1038.  
  1039. Most recent models  of hard drives use voice coil rather than stepper mo-
  1040.                         <page down> for more Park
  1041. tor actuators, and these are self-parking.  That means that whenever pow-
  1042. er is removed,  the heads automatically  retract to the  parked position.
  1043. Immediately.   Because the heads  are on a spring.   The electric |ncurrent|n
  1044. counteracts the spring,  but when you shut off the power, there's nothing
  1045. to counteract the spring so,  zip!  The spring pulls  the heads into pos-
  1046. ition over the landing zone.
  1047.  
  1048. That means that turning on the power again is not a threat  to your data,
  1049. but what about the whole time it's running?  Obviously you can't have the
  1050. heads parked the whole time,  or you couldn't get any work done.   But if
  1051. you get up  for a cup of coffee,  or to answer the doorbell,  what if the
  1052. dog rushes past  and bumps  into the computer?  What if  there's a  power
  1053. surge?  The more often the heads are parked,  the more often your data is
  1054. safe.
  1055.  
  1056. If you can call the manufacturer of your hard drive, and ask them if it's
  1057. ok for your  particular brand and model,  you should |npark|n your hard drive
  1058. every time you leave your desk for a second!
  1059.  
  1060.                         <page down> for more Park
  1061. But be aware  that I meant it when I said to ask the manufacturer of your
  1062. specific disk, because using a parking program that was made for one type
  1063. of disk, on another type of disk,  can ruin the drive!   Some people even
  1064. say that parking any self-parking drive  with a |npark|n command,  can damage
  1065. it.   I don't believe that,  the company that built my hard drive told me
  1066. it's not true, and many of my self-parking-drive-owning friends have used
  1067. parking programs  with no ill effects.   But you never know,  maybe it is
  1068. true for some self-parking drives.
  1069.  
  1070. If you have  an older hard drive  which uses a  stepper motor  instead of
  1071. a voice coil actuator,  you really need to use a  parking program!   It's
  1072. likely that one came with your disk.   If so, use it every time you leave
  1073. your desk,  and especially make it the last thing you do before each time
  1074. you turn off the |spower|s!
  1075.  
  1076. Some older parking programs can be really dangerous, as they were intend-
  1077. ed for only one particular type of hard drive,  and as I said,  using the
  1078. wrong parking program  for the drive  can ruin it!   But parking programs
  1079. written recently  generally check the BIOS  to see where is the safe area
  1080.                         <page down> for more Park
  1081. to |npark|n on your particular drive, before doing anything else.  These pro-
  1082. grams are safe to use on any drive, if your BIOS is correct.
  1083.  
  1084. If you have  a 286 or newer  machine,  do you know  who entered your CMOS
  1085. |ssetup|s?  Was it someone reliable, or was it the computer salesman?  (Those
  1086. are mutually exclusive categories.)   You might want to call the manufac-
  1087. turer of the drive  and make sure you have the right numbers  in CMOS for
  1088. the write precomp  and landing zone especially,  along with all the other
  1089. hard drive settings.
  1090.  
  1091. Many commercial  disk utility packages  such as PC Tools and SpinRite in-
  1092. clude a  |nPARK|n.COM file.   There is even  a public domain  parking program
  1093. called TIMEPARK that is a TSR,  that parks  your hard drive every time it
  1094. hasn't been accessed for X minutes (you choose what the X number is).  If
  1095. your hard drive manufacturer says it's ok,  then using a parker like that
  1096. one is the ultimate in safety!
  1097.  
  1098. Now, how do you unpark your drive when you need to access it again?  Well
  1099. if you have  a PC or XT,  I think all of those  had parking programs that
  1100.                         <page down> for more Park
  1101. couldn't be unparked  without a cold boot.   If that's the case with your
  1102. parking program,  you will get  a message  on your screen  every time you
  1103. |npark|n, that says something like "Turn power off now".  See if you can call
  1104. the manufacturer  of your  hard drive  and ask them  if there is  a newer
  1105. parking program that's safe to use on your disk.
  1106.  
  1107. Otherwise,  all parking programs allow the heads to unpark the second any
  1108. software requests a disk access, whether you've |sreboot|sed since you parked
  1109. or not.  For that reason you have to make sure that |nPARK|n is the last com-
  1110. mand you give  before shutting off  the computer.   If any other external
  1111. command is entered,  the heads will  unpark in order  to read the command
  1112. file and execute it, so it's like you hadn't bothered to |npark|n at all!
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.            <page down> for How Does |nPower|n Affect Your Computer?
  1121.                    How Does |tPower|t Affect Your Computer?
  1122.  
  1123. Well,  besides the obvious--that the computer doesn't run without |npower|n--
  1124. there are other things to consider.  (See also Park.)
  1125.  
  1126. One is tied right in  to the fact that  the computer only runs  if it has
  1127. |npower|n.   All the data that's temporarily stored in RAM while the computer
  1128. is working on that data,  will be lost totally and completely if you have
  1129. a sudden |npower|n outage.  (See also Shelling Out for more info about things
  1130. that happen  if you |sreboot|s--or if a  |npower|n outage  |sreboot|ss for you--while
  1131. you're in the middle of an application.)  So you need to save what you're
  1132. working on, to your disk,  very often.   That way, if the |npower|n goes out,
  1133. you only lose what you had done since you saved your work ten minutes ago
  1134. instead of losing everything you did since you saved three hours ago.
  1135.  
  1136. Remember that  "data in |sRAM|s"  includes everything that's sitting  on your
  1137. RAMdisk too.   So if you're working on a file from the RAMdisk, saving it
  1138. back to the RAMdisk  every ten minutes  won't help you  if the |npower|n goes
  1139. out.  You need to save your work to a real disk, either hard or floppy.
  1140.                         <page down> for more Power
  1141. Another factor  that computer users need to worry about  is |nPower|n Surges.
  1142. Wouldn't it be nice if the electricity that comes out of the wall were at
  1143. a nice constant  110 volts or whatever  it's supposed to be?   But that's
  1144. not the case.   Besides "power hits", where the voltage goes way down for
  1145. just a second, there are also Surges,  where the voltage goes  way up for
  1146. a second.   This also can be quite damaging to computers, TVs,  and other
  1147. electronic devices.  Especially computers.
  1148.  
  1149. You can buy  special |npower|n strips  that act as  "Surge Suppressors",  for
  1150. about $15,  but those don't  do you very much good.   They're better than
  1151. no Surge protection at all, of course, but those cheap ones just don't do
  1152. a very good job!   The ones in the $80 price range  really do work pretty
  1153. well.  There are even a couple of companies that guarantee both the Surge
  1154. Suppressor and your equipment that's plugged into it!  If their Suppress-
  1155. or fails and your computer gets trashed, they will pay for all of the re-
  1156. pairs!  Of course, that doesn't help you to replace all the data that was
  1157. on your hard drive.   That's what frequent |sBACKUP|ss are for!   But it sure
  1158. does prove  that the company has confidence  in the product so it must be
  1159. pretty good.
  1160.                         <page down> for more Power
  1161. (The next paragraph may or may not be true.  It was true a few years ago,
  1162. but I've heard in a couple places that the |npower|n supplies they're putting
  1163. into computers these days take care of this problem all by themselves.  I
  1164. don't know if that's completely true or not, so I'm going to mention it.)
  1165.  
  1166. Ever notice how a light bulb usually burns out right when you turn on the
  1167. switch?   Any time  you turn on  an electrical device,  a sudden shock of
  1168. high voltage goes through every component in the device.   Personally,  I
  1169. don't want to subject my computer  to that shock  any more often than ab-
  1170. solutely necessary!   This is part of  the raging  debate over  whether a
  1171. body should leave his computer on all day long, or whether he should turn
  1172. it off  when he's not  using it.   Turning it off  is not a problem,  but
  1173. turning it back on can have some undesirable effects.
  1174.  
  1175. If you live in an area that actually experiences "Winter",  you know that
  1176. the potholes in the streets get really bad in the Spring,  because of the
  1177. constant expansion/contraction caused by freezing/thawing.  Well you know
  1178. that  when your computer is running  it gets awfully warm in there!   And
  1179. when it's not running,  it cools to room temperature.   All that changing
  1180.                         <page down> for more Power
  1181. of the temperature  and expansion  and contraction  causes the boards and
  1182. cables  inside the computer's case  to work their way out  of their slots
  1183. and plugs.   So whenever  you suspect  that you have a bad  video card or
  1184. drive controller,  the first thing  you want to check,  before you  spend
  1185. money on a repairman, is to open up the case and reseat all the cards and
  1186. replug all the cables.  (Not if your computer is still under warranty, of
  1187. course, since opening it up would probably void the warranty!)
  1188.  
  1189. First you want to turn off the |npower|n to the computer,  and unplug it from
  1190. the wall.   Now open up the case,  and before you touch  anything inside,
  1191. plug the |npower|n cord back in  so that the computer will be grounded.   Now
  1192. touch  the |npower|n supply  (the big silver metal box  usually in  the right
  1193. rear corner) which,  since the computer is plugged in, will drain off any
  1194. static charge that your body might be carrying.  Because static electric-
  1195. ity can ruin a RAM chip  just like that!   (Static can do a lot of damage
  1196. to lots of parts of your computer, and your floppy disks too.)  Touch the
  1197. |npower|n supply very frequently  while you're working,  especially if you're
  1198. standing on carpet!   Just push down on all your expansion cards, and un-
  1199. plug and replug all the cables.  Stay away from the motherboard, which is
  1200.                         <page down> for more Power
  1201. a big flat thing laying down in the bottom of the computer.  Put the cov-
  1202. er back on  and |npower|n up  the computer,  and it's  very likely  that your
  1203. hardware problem has vanished!
  1204.  
  1205. What about lightning?   You want to talk about some power?   There's more
  1206. electricity in a bolt of lightning  than you will see anywhere else,  all
  1207. week put together!   If lightning strikes your neighborhood and your com-
  1208. puter  is plugged into the wall  via either the |npower|n cord,  or the phone
  1209. cord leading to your modem,  there's a good chance that your whole compu-
  1210. ter will be fried!   If lightning strikes the house next door,  your com-
  1211. puter is a goner for sure.   If you hear thunder in the distance,  finish
  1212. up what you're doing,  shut the computer off,  and unplug  the |npower|n cord
  1213. and the modem's phone line  just as quick as you can.   If you live in an
  1214. area  where there are a lot  of thunderstorms  in the summer,  unplug the
  1215. |npower|n cord  and the modem line every night when you go to bed,  and every
  1216. time  you leave the house.   If you go on vacation,  unplug  even if your
  1217. area doesn't get that many thunderstorms!   Turning the computer off does
  1218. not protect it from lightning in the least.   If it's plugged in,  light-
  1219. ning can kill it.
  1220.                         <page down> for more Power
  1221. Lightning and |npower|n Surges are just about the only reasons I can think of
  1222. for turning the computer off whenever you're not using it.   I leave mine
  1223. on from the time I get up,  until the time I go to bed, except for when I
  1224. leave the house.   There are corporations that have a couple hundred com-
  1225. puters and they stay on twenty-four hours a day seven days a week, except
  1226. maybe Christmas vacation, and those computers do just fine.   Some people
  1227. turn their computers off and on several times a day,  and they seem to do
  1228. just fine too.   I've got a feeling  the reasons  for turning it off  are
  1229. just about equal to  the reasons for leaving it on,  and that it's just a
  1230. matter of personal preference.   Read everything  in this section,  get a
  1231. few more opinions, and then use your best judgement as to how you want to
  1232. do it.  It probably doesn't make much of a difference.
  1233.  
  1234. Oh, yeah,  I thought of another reason  in favor of turning it off.   The
  1235. whole time the computer is running, the fan is pulling air from your room
  1236. into the computer and across the components to keep things cool in there.
  1237. Well, if your air has cigarette smoke or cat hair or dust floating around
  1238. in it,  and you leave  the computer on  all the time,  then those foreign
  1239. bodies in your air  are going into  the computer  even more often than is
  1240.                         <page down> for more Power
  1241. necessary.  Then again, I've got a very furry cat and I smoke two packs a
  1242. day, and I've never had any troubles with my computers.
  1243.  
  1244. Regardless of whether  you decide to turn yours  off or leave it on  when
  1245. you're going to be away  for a long time,  you have to do something about
  1246. the monitor.   As long as the same image sits  unchanging  on the screen,
  1247. you're risking what they call "burn-in".   (Burning in has another defin-
  1248. ition too,  and that is  leaving the computer turned on  for at least two
  1249. solid days when it's first been put together,  because generally computer
  1250. components are most likely to fail very early in their life.  If the com-
  1251. puter is left running and working on something like a battery of diagnos-
  1252. tic tests, for two whole days and nothing fails,  that probably means the
  1253. computer is going to be fine for a long time to come.  Your dealer should
  1254. have done this for you before he let you have the machine.)  In this case
  1255. "burn-in" means  that the same image  being left on the screen for an ex-
  1256. tended period of time  can cause that image  to burn permanently into the
  1257. screen.   You don't want this to happen,  so whenever you  walk away from
  1258. the computer for a minute, turn the brightness and contrast knobs all the
  1259. way down.   If they're in the back and really hard to reach,  then switch
  1260.                         <page down> for more Power
  1261. off the |npower|n on the monitor.  It's not really good for the monitor to be
  1262. turning it on and off all the time, but it's better than burn-in.   There
  1263. is a much better solution to this, though.   There's a type of TSR called
  1264. a screen-blanker or screen-saver,  which monitors your keyboard and every
  1265. time you  don't hit any keys for  a specified number of minutes,  the TSR
  1266. will just remove everything from the screen or,  in some cases,  put up a
  1267. pretty  pattern of  constantly-changing graphics,  and then when you want
  1268. your old screen back, you just hit any key and poof!  The screen you were
  1269. working on before the screen-saver kicked in, is right there.   There are
  1270. hundreds of shareware screen-savers available from your local BBS.
  1271.  
  1272. One of my favorite investments I ever made was  an UPS.   That stands for
  1273. Uninterriptible |nPower|n Supply  and it's kind of a big battery with special
  1274. circuitry which makes it  respond to a |npower|n outage in no time flat.   If
  1275. your electricity  so much as hiccups,  the UPS will  transfer your compu-
  1276. ter's |npower|n  from the wall outlet  to the battery  so fast that your com-
  1277. puter won't  even notice it.   You won't lose a single byte  of what's in
  1278. memory.   It's just amazing.  And when the electricity comes back on, the
  1279. UPS transfers right back to the |npower|n that's coming from the wall.  Or if
  1280.                         <page down> for more Power
  1281. your electricity  stays off,  the UPS's battery  will keep  your computer
  1282. running for ten or fifteen minutes,  plenty of time  for you to save your
  1283. work to disk and shut the computer off.   The electricity in my neighbor-
  1284. hood goes off  just for a second  at a time,  about a dozen times a week.
  1285. Oh,  how I used to  hate that!   But now that  I bought my UPS,  what the
  1286. electric company does, doesn't affect me in the least.  My lights flicker
  1287. and my clocks all flash 12:00, 12:00, but my computer just keeps right on
  1288. going!  Also, most UPSs also have some of the best possible Surge protec-
  1289. tion,  and a line conditioner,  and everything,  so that  the electricity
  1290. that goes through it and into the computer is always at exactly the right
  1291. voltage and everything.   Fantastic!   And an UPS is not nearly as expen-
  1292. sive as it used to be.  Mine was under $200, and it's strong enough for a
  1293. good solid 386 computer.  I hope you can get one for yourself soon too.
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.              <page down> for Methods of Software Distribution
  1301.                      Methods of Software Distribution
  1302.  
  1303. The normal method  for distribution  of software  is plain old |tcommercial|t
  1304. software  that you buy  in a store  or from a catalog,  and it  generally
  1305. costs five or fifty times what it's worth.
  1306.  
  1307. Sometimes you can get a |tdemo|t version  of a |ncommercial|n program,  which you
  1308. can try out for free,  but some of its best features will be disabled, so
  1309. that  it won't do you much good  except for seeing  whether you like  the
  1310. program or not.  That way, if you like it, you'll buy a real copy.
  1311.  
  1312. |tShareware|t is a method of distribution  where you can also try the program
  1313. out for free, and only buy it if you like it, but in most cases it is not
  1314. crippled the way |ncommercial|n demos are.  There are some exceptions to that
  1315. and we generally  refer to  such programs  as "crippleware",  but for the
  1316. most part, |nshareware|n is fully functional.
  1317.  
  1318. The quality  of a piece of |nshareware|n  depends  on the attitude of the au-
  1319. thor.   Some authors realize  that the only way they're going to get paid
  1320.                       <page down> for more Shareware
  1321. for the program,  is if it's really good,  and so they put  a lot of work
  1322. into  releasing an excellent product.   Commercial software authors don't
  1323. always do that,  because they get their money before you get the software
  1324. home and find out you don't like it!  Unlike most any other type of prod-
  1325. uct in the world there is rarely a money-back guarantee for any software.
  1326. This is because  once the package is opened,  it is possible that whoever
  1327. opened it has made a copy of the disks to keep,  or perhaps infected them
  1328. with a virus, so most stores won't accept any opened software for return.
  1329. So the author knows that once you buy the product,  he gets his money re-
  1330. gardless  of whether you like the program or not!   Why should he waste a
  1331. bunch of time making a good program?
  1332.  
  1333. |nShareware|n authors know better, because the only way they can possibly get
  1334. any money at all is if you like the program well enough to send some mon-
  1335. ey.   So they put a lot of time into getting it right.   Also, commercial
  1336. software programmers have time limits placed on them by the marketing de-
  1337. partment of their company.  |nShareware|n authors don't have to release their
  1338. products until they're ready for market.   Just a couple explanations for
  1339. the fact that  there are so many  |nshareware|n products  available  that are
  1340.                       <page down> for more Shareware
  1341. even better than equivalent commercial programs!
  1342.  
  1343. Some |nshareware|n authors, though,  realize that very few people ever bother
  1344. to register  their |nshareware|n,  so they don't try that hard,  because they
  1345. figure they're not going to make any money  on it anyway.   Those authors
  1346. give |nshareware|n  a bad name,  but then again,  that's only because so many
  1347. |nshareware|n users don't pay for their shareware!  So in a way, if you don't
  1348. register the |nshareware|n you like,  and you get  some other |nshareware|n  that
  1349. isn't any good, that's just as much your fault as the fault of the author
  1350. who didn't try hard because he knew you wouldn't register it anyway.
  1351.  
  1352. If you like the concept of downloading software from a BBS, trying it out
  1353. for a day or a week or a month, to make sure you like it,  and then send-
  1354. ing a reasonable amount of money to the program's author,  then please do
  1355. support the |nshareware|n industry by sending in a registration fee for what-
  1356. ever programs you like.  Because if |nshareware|n authors don't make any mon-
  1357. ey, they're going to stop releasing their work in the |nshareware|n form, and
  1358. it will no longer be possible for you, or for anyone to benefit from such
  1359. an equitable arrangement as what |nshareware|n is.
  1360.                       <page down> for more Shareware
  1361. Besides,  if you use  a piece of |nshareware|n  for more than  a month or so,
  1362. without paying for it,  you're basically breaking the law!   You're never
  1363. going to get caught or go to jail for it,  but that still doesn't make it
  1364. right.
  1365.  
  1366. Another reason to register your |nshareware|n,  is that if you do,  you might
  1367. get free upgrades, free technical support, a nice neat typeset manual, or
  1368. some special features  like a new copy of the program  that allows you to
  1369. change its screen colors.   Or a new copy that doesn't have the obnoxious
  1370. "pause" screen that so many |nshareware|n programs use to remind you that you
  1371. haven't registered yet.
  1372.  
  1373. There are also other software authors who are just so generous,  and have
  1374. written some program that they think is so necessary that everyone should
  1375. be able to have it, that they release the program as |tfreeware|t.  This type
  1376. of software is just like it sounds, free!  Totally and completely!
  1377.  
  1378. Another type of free software is |tpublic domain|t.   This is just like free-
  1379. ware,  only the author  doesn't  even care  if anyone knows  he wrote it.
  1380.                       <page down> for more Shareware
  1381. This stuff is not even copyrighted!   A body could even use it as part of
  1382. a program that they're writing, without worrying that they'll get sued or
  1383. anything.
  1384.  
  1385. So,  what types  of |nshareware|n,  freeware,  and public domain software are
  1386. available?   Just about every type that is available through conventional
  1387. commercial outlets,  and more!   Because commercial distributors are only
  1388. interested in software that would appeal to large numbers of people.   So
  1389. there are fewer types.   But if some programmer somewhere writes a little
  1390. program  for his own use,  and then decides  he may as well try  to get a
  1391. little money out of it, he releases it as |nshareware|n.  Even if it is some-
  1392. thing that so few people  would be interested in,  that no software house
  1393. would take it, it is still available as |nshareware|n.  I don't think there's
  1394. any function possible on a computer, that some |nshareware|n author somewhere
  1395. hasn't written a program to accomplish!
  1396.  
  1397. Ok,  so how do you get this stuff?   Well,  there are a lot of mail order
  1398. companies  that  advertise in  the computer  magazines,  that  distribute
  1399. |nshareware|n.   However,  they charge anything from  $1 to $5 per disk,  for
  1400.                       <page down> for more Shareware
  1401. the copying and shipping fees.   So that is  in addition to the registra-
  1402. tion fee that is due the author if you like the program.   The other main
  1403. way to get  this sort of software,  is by |ndownloading|n it over your modem,
  1404. from national online services or from local BBSs.
  1405.  
  1406. So, what is |tdownloading|t?   Well that's when you use your modem to dial up
  1407. a local |nBBS|n,  or one of the national  online services,  and you have your
  1408. software tell their software  to send you a file.   Then the file is sent
  1409. from their hard drive straight to your hard drive, over the phone line.
  1410.  
  1411. All, right, now what is a |TBBS|T?   Well that stands for Bulletin Board Sys-
  1412. tem.   What it means  is that  someone has  a very expensive hobby!   The
  1413. Sysop  (System Operator)  of a |nBBS|n has a spare computer with a large hard
  1414. drive, and a separate phone line,  and some special |nBBS|n software, and you
  1415. can just use your modem to call up his computer,  and play some games, or
  1416. write messages to other users, or download software!
  1417.  
  1418. One thing  that most people  have to find out  the hard way,  that is, by
  1419. having someone  publicly ask them  on the |nBBS|n  to stop it,  which is kind
  1420.                       <page down> for more Shareware
  1421. of embarrassing:   It is considered  rude to type  in  ALL CAPS  on a BBS
  1422. because  it's kind of  hard to read,  and it's  interpreted  as shouting.
  1423. Please turn off your <CapsLock> key when writing messages on any BBS.
  1424.  
  1425. Now usually a program  that you download  is all packed together into one
  1426. file with an extension like .ZIP, .ARC, .LZH, .ARJ, .ZOO, or .PAK.  These
  1427. are called archive files or compressed files.  They've been compressed so
  1428. that the compressed file is smaller than the sum of the files before com-
  1429. pression,  so that it won't take so long  to download it,  and so that it
  1430. won't take up  so much space  on the hard drive  of the BBS,  and also so
  1431. that you can get  the whole program by downloading just one file,  rather
  1432. than downloading each file of the program separately.
  1433.  
  1434. So what do you do  with a .ZIPped or .ARCed file  when you get it?   Well
  1435. you need  the compression program  it was compressed with,  to decompress
  1436. it.   There's a different compression program that works on each of those
  1437. archive extensions.   One of the  most popular  is PKZIP  which makes the
  1438. files with  .ZIP extensions.   All these compression programs  are share-
  1439. ware and they are available on the same BBS you downloaded the file from.
  1440.                       <page down> for more Shareware
  1441. You just need to download the file that contains the compression program.
  1442. Now this file  will have an  .EXE extension,  and it is called a Self-Ex-
  1443. tracting compressed file.   What that means, is that if you just type its
  1444. name, like any other .EXE file, it will uncompress itself.   That way you
  1445. don't have to have  the PKUNZIP.EXE  file already,  in order to unzip the
  1446. PKZIP program.  That wouldn't work at all, would it?
  1447.  
  1448. So when you execute  the self-extracting file,  it will unzip itself into
  1449. all of the files that make up the program.   Like PKZIP.EXE, PKUNZIP.EXE,
  1450. PKZIPFIX.EXE  (in the case of  the PKZIP program),  and MANUAL.DOC  which
  1451. contains  all the instructions  on how to use  the program.   Now you can
  1452. unzip any .ZIP file you might want to download.
  1453.  
  1454. The next program  you need to download  after you get  your decompression
  1455. programs,  is a virus detection  utility.   A really popular one  is John
  1456. McAfee's ViruScan.   First use it to scan your hard drive, and also every
  1457. floppy disk you have,  and then  from then on,  just scan  everything you
  1458. download, and everything you buy, before you use it.  And always keep the
  1459. most recent version  of ViruScan,  because the program won't find any vi-
  1460.                       <page down> for more Shareware
  1461. ruses that weren't invented yet by the time it was written.   If you have
  1462. an old version of ViruScan, it will protect you from old viruses, but not
  1463. from new ones!  Just like a vaccination.
  1464.  
  1465. So that's all there is,  to get tons of software  at minimal cost.   Just
  1466. download,  decompress,  scan for viruses,  and take it for  a test drive.
  1467. But if it's |nshareware|n, and you like it,  and you intend to use it, please
  1468. send in the registration fee!   The only thing that keeps |nshareware|n auth-
  1469. ors writing  more programs,  is if they  made some money  on the last one
  1470. they wrote.
  1471.  
  1472. Well what do you do with the .ZIP or .ARC or whatever file that you down-
  1473. loaded,  after you've opened it up and gotten all of the files out of it?
  1474. Well you erase it from your hard drive, because it takes up a lot of hard
  1475. disk space for nothing.  But wait!  First, make sure to copy it to a disk
  1476. for safe-keeping.  Not only because maybe you deleted the program's docu-
  1477. mentation file, and you might need it again later.   Well if so, you just
  1478. get it back out of the compressed file which you copied to a floppy disk.
  1479. But the most important reason to save the compressed file on a floppy, is
  1480.                       <page down> for more Shareware
  1481. that eventually you'll need to upload the file to somewhere.   You see, a
  1482. lot of |sBBS|ss keep an upload/download ratio.  That means you're only allow-
  1483. ed to download  a certain number of files from each BBS,  before you have
  1484. to upload a file to them in exchange for what you got from them.  Well if
  1485. you kept the files you downloaded  from another BBS,  you can upload them
  1486. to this BBS where your up/down ratio is no good.  So if you kept the com-
  1487. pressed files on a floppy disk,  then you've got them handy, ready to up-
  1488. load whenever you need to.
  1489.  
  1490. You must not ever  just zip up a bunch of files  from your hard drive and
  1491. upload that.   Because it is a copyright violation, to distribute part of
  1492. a program without  every single bit of it  just the way its author wanted
  1493. it distributed.   And the only way to make sure you send all of the files
  1494. in their original form, is if you still have the .ZIP or .ARC or whatever
  1495. file in the form you downloaded it in.   Because maybe there was a little
  1496. README.TXT file or a batch file that you knew you wouldn't need,  and you
  1497. deleted it to save space.  Or maybe the program has a little utility that
  1498. allows you to customize the program  to your own favorite colors or some-
  1499. thing, and you did that.  So if you were to compress the program back in-
  1500.                       <page down> for more Shareware
  1501. to a .ZIP or .ARC or whatever file,  and upload it, that would be illegal
  1502. because it's not in the original form anymore.   Well all you have to do,
  1503. to avoid such problems,  is copy every file you download, to floppy disks
  1504. before you delete them from your hard drive.  It's not so bad; I have all
  1505. the good files I've ever downloaded, sitting on just twelve 720K disks.
  1506.  
  1507. Another thing that is a copyright violation,  is to use one paid-for copy
  1508. of a software program, on more than one computer.  Some authors allow it,
  1509. but most don't.   If you want to use a program on two computers, you usu-
  1510. ally have to pay for two copies.  This is even true of DOS itself.
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.                    <page down> for What Are Wildcards?
  1521.                            What Are |tWildcards|t?
  1522.  
  1523. |nWildcards|n are a way to specify a group of files all in one word,  so that
  1524. you can perform some DOS operation on them all by using just one command.
  1525. For example,  you can't specify  multiple files  as parameters to the DEL
  1526. command, but what if you want to delete all the files in a |sdirectory|s?  Do
  1527. you have to delete every single filename separately?
  1528.  
  1529. No, you can use |nwildcards|n.   You know what |nwildcards|n do in poker,  right?
  1530. If the dealer says at the beginning of a hand  that the J is going to be
  1531. a wildcard,  and you end up with the hand  10 J Q J A,  then you can
  1532. say that your J is posing as a K,  and you have a royal straight flush!
  1533. Well |nwildcards|n in DOS work in a similar manner.
  1534.  
  1535. The two |nwildcards|n  that can be used are  ? and *.   The ? stands for "any
  1536. character in this position" and the * stands for "any character from this
  1537. position through the end  of the filename"  if the * is  in the filename,
  1538. or "any character from this position through the end of the extension" if
  1539. the * is in the extension.
  1540.                       <page down> for more Wildcards
  1541. The wildcard specification  |t*.*|t means every file with any number of char-
  1542. acters in the filename and any number  (including zero)  of characters in
  1543. the extension (up to the normal limit),  in the current directory.   (See
  1544. the RENAME chapter for some important information about how |nwildcards|n are
  1545. used on the target half of a command!)   *.EXE would mean every file that
  1546. has  the .EXE extension.   BL*.? means all files  whose first name starts
  1547. with BL and whose extension is only zero or one character long.   BL??.E*
  1548. means all files whose first name starts with BL and only have zero,  one,
  1549. or two characters after that,  and whose extension is E or starts with E.
  1550.  
  1551. The reason that ? and * can represent zero characters,  is that in a dir-
  1552. ectory, the bytes of data are always located in the same place.   I mean,
  1553. the filename always starts  in column one,  the extension in column nine,
  1554. followed by the attributes byte in column twelve, etc.   So if a filename
  1555. is only five characters long,  then columns six through eight  are padded
  1556. with spaces.   Well as far as |nwildcards|n are concerned,  a <Space> is sort
  1557. of a valid filename character,  even though in other cases,  DOS does not
  1558. allow them at all.
  1559.  
  1560.                       <page down> for more Wildcards
  1561. That's why if you ever accidentally give a file a name that has a <Space>
  1562. in it, and DOS won't let you do anything with it,  you can use a wildcard
  1563. specification to rename the file to some legal filename.  For example, if
  1564. the file was named ABC DEF.TXT, then you could do this:
  1565.           RENAME ABC?DEF.TXT ABC-DEF.TXT
  1566. because the ? will pick up the <Space> in the filename,  and a hyphen (-)
  1567. is a valid filename character.  Now DOS will let you access that file.
  1568.  
  1569. Anyway, one thing you have to remember is that you don't have any control
  1570. over how many characters  the * wildcard will stand for.   If you want to
  1571. refer to two files  named ABCDE.TXT and ABCE.TXT,  you know that AB?E.TXT
  1572. won't work  because in that first file,  there are two characters between
  1573. the B and the E, so you might try AB*E.TXT.  Well that wildcard spec will
  1574. pick up both of those files, but it will also pickup any other files that
  1575. start with AB and have the .TXT extension, regardless of whether the last
  1576. letter in the filename  is an E or not,  because * means  "any characters
  1577. from here to the end of the filename",  not just "one or two characters".
  1578. DOS will just totally ignore the E in that wildcard filespec.
  1579.  
  1580.                       <page down> for more Wildcards
  1581. So,  do you want to delete every file in the current |sdirectory|s?   DEL *.*
  1582. will do it.   Want to copy all the files  in your word processing program
  1583. to a floppy in drive B:?   If they all start with WP,  COPY WP*.* B: will
  1584. do that.   Most DOS commands can use  wildcard specifications in place of
  1585. exact filenames.   |nWildcards|n won't catch Hidden files, though.  The wild-
  1586. card specification *.* will catch all files  in the current directory ex-
  1587. cept those with H or S attributes.  (Except in DOS version 5.0, where the
  1588. ATTRIB command can match Hidden files with a wildcard specification.)
  1589.  
  1590. One thing that's  really important when using |nwildcards|n,  especially with
  1591. the DEL or ERASE commands:  always do a DIR of it first!  If you're about
  1592. to use  DEL ABC*.??  to delete everything that has a filename that starts
  1593. with ABC and an extension  of two or fewer characters,  then first do DIR
  1594. ABC*.?? to make sure you aren't about to delete  something you hadn't in-
  1595. tended to delete.   Then if the DIR command doesn't show you any surpris-
  1596. es, just type |nDEL|n and <F3> and <Enter>.  (See editing keys.)  Because the
  1597. |nDEL|n will overwrite the |nDIR|n in the template, and then the <F3> key'll copy
  1598. the ABC*.?? from the template  to the |ncurrent|n command line.   So you know
  1599. exactly which files you're about to delete without retyping the wildcard.
  1600.             <page down> for How Do You |nWrite-protect|n a Floppy?
  1601.                     How Do You |tWrite-protect|t a |sFloppy|s?
  1602.  
  1603. That's easy!  On a 5.25-inch disk, there is a little notch near the upper
  1604. right corner, and if you cover that notch up with something that infrared
  1605. light can't pass through, the disk is write-protected.
  1606.  
  1607. On a 3.5-inch disk, there is a little hole in the upper right corner that
  1608. has a little  slidey-gadget in it.   If the hole is closed by the slidey-
  1609. gadget, the disk is not write-protected.   If you slide the slidey-gadget
  1610. up so that light can go through the hole, then it is write-protected.
  1611.  
  1612. Notice that  the situation  is reversed  between  5.25-inch  and 3.5-inch
  1613. disks.   On the 5.25,  if light can go through, it's not write-protected,
  1614. but on the 3.5,  if light can go through, it is write-protected.   Goofy.
  1615.  
  1616. On a 3.5-inch  High Density disk,  you'll see that  there is also another
  1617. hole, in the upper left corner, that doesn't have a slidey-gadget.   That
  1618. one has  nothing to do  with write-protection.   It is only there to tell
  1619. the drive that it's a HD disk instead of a Double Density disk.
  1620.                     <page down> for more Write-protect
  1621. Now what does write-protecting a disk do?  Well it protects the disk from
  1622. having DOS write any information to it.   DOS can't delete  or change any
  1623. file on a disk  while it is write-protected,  because the disk drive  has
  1624. some sensor in it,  that detects whether  light will go through that spot
  1625. on the disk's cover or not, and if the disk is write-protected, the drive
  1626. won't let any write-|ncurrent|n through the read/write heads.
  1627.  
  1628. However,  if there is a power surge that causes some high voltage to "ac-
  1629. cidentally" travel  through the drive's heads,  I don't think that write-
  1630. protection will protect the spot  on the disk that the heads happen to be
  1631. sitting above.   But anything that deliberately tries  to write to a disk
  1632. will be stopped by the write-protection.
  1633.  
  1634. Some disk drives have a little mechanical "pin" that checks for the hole,
  1635. rather than a beam of infrared light.  And maybe some drives have regular
  1636. light instead of infrared.   But as long as  the notch on a 5.25" disk is
  1637. covered  with some material that  neither pin  nor infrared light can get
  1638. through,  the disk is write-protected.   And remember that 3.5" disks are
  1639. backwards from 5.25" ones--if light goes through, it's write-protected.
  1640.                       <page down> for What Is ASCII?
  1641.                               What Is |tASCII|t?
  1642.  
  1643. |nASCII|n stands for American Standard Code for Information Interchange.   It
  1644. is pronounced  "ASK-ee".   It's like a common language by which different
  1645. programs can communicate.
  1646.  
  1647. Say you have some data in a database, that you want to use in your spread
  1648. sheet.   Well databases  and spreadsheets  generally speak  two different
  1649. languages.   But they both have  one language in common.   You can export
  1650. the database data  into an |nASCII|n file,  and import  that |nASCII|n file  into
  1651. your spreadsheet, and then your spreadsheet will be able to use the data-
  1652. base data!
  1653.  
  1654. An |nASCII|n file is just a text file  that a human being could read,  as op-
  1655. posed to one of those files  that just looks like  total gibberish if you
  1656. look at it with the TYPE command, like .EXE and .COM files do.
  1657.  
  1658. An |nASCII|n file  is the only type of file that DOS can read,  when it comes
  1659. to batch files and things like that.   To make an |nASCII|n file, you can use
  1660.                         <page down> for more ASCII
  1661. any text editor, or your word processor also, if you can find the command
  1662. that your word processor uses to export an |nASCII|n file.  Some word proces-
  1663. sors  make it easy by  calling it "export",  or "ASCII",  or "text",  but
  1664. other word processors have to be  difficult and call it something  incom-
  1665. prehensible like "non-document mode" or "unformatted files".
  1666.  
  1667. Well,  now I suppose  you want to see  this set of codes  that's known as
  1668. |nASCII|n, right?  Ok, get ready, here are the decimal |nASCII|n codes.
  1669.  
  1670. Non-printing characters:  9   ^I HT   <Tab>      19  ^S DC3
  1671.  0   ^@ NUL  null        10   ^J LF   linefeed   20  ^T DC4
  1672.  1  ^A SOH              11   ^K VT              21  ^U NAK
  1673.  2  ^B STX              12   ^L FF   formfeed   22  ^V SYN
  1674.  3  ^C ETX              13   ^M CR   <Enter>    23  ^W ETB
  1675.  4  ^D EOT              14  ^N SO              24  ^X CAN  cancel
  1676.  5  ^E ENQ              15  ^O SI              25  ^Y EM
  1677.  6  ^F ACK              16  ^P DLE             26   ^Z EOF  End-of-File
  1678.  7  ^G BEL  bell        17  ^Q DC1             27   ^[ ESC  ESCape
  1679.  8   ^H BS   <Backspace> 18  ^R DC2             28  ^\ FS
  1680.                         <page down> for more ASCII
  1681. 29  ^` GS               30  ^= RS              31  ^- US
  1682. Printing characters (|sdecimal|s and hexadecimal values):
  1683.   32 20 <Space> 49 31 1    66 42 B    83 53 S    100 64 d    117 75 u
  1684.   33 21 !       50 32 2    67 43 C    84 54 T    101 65 e    118 76 v
  1685.   34 22 "       51 33 3    68 44 D    85 55 U    102 66 f    119 77 w
  1686.   35 23 #       52 34 4    69 45 E    86 56 V    103 67 g    120 78 x
  1687.   36 24 $       53 35 5    70 46 F    87 57 W    104 68 h    121 79 y
  1688.   37 25 %       54 36 6    71 47 G    88 58 X    105 69 i    122 7A z
  1689.   38 26 &       55 37 7    72 48 H    89 59 Y    106 6A j    123 7B {
  1690.   39 27 '       56 38 8    73 49 I    90 5A Z    107 6B k    124 7C ||
  1691.   40 28 (       57 39 9    74 4A J    91 5B [    108 6C l    125 7D }
  1692.   41 29 )       58 3A :    75 4B K    92 5C \    109 6D m    126 7E ~
  1693.   42 2A *       59 3B ;    76 4C L    93 5D ]    110 6E n    127 7F <Del>
  1694.   43 2B +       60 3C <    77 4D M    94 5E ^    111 6F o
  1695.   44 2C ,       61 3D =    78 4E N    95 5F _    112 70 p
  1696.   45 2D -       62 3E >    79 4F O    96 60 `    113 71 q
  1697.   46 2E .       63 3F ?    80 50 P    97 61 a    114 72 r
  1698.   47 2F /       64 40 @    81 51 Q    98 62 b    115 73 s
  1699.   48 30 0       65 41 A    82 52 R    99 63 c    116 74 t
  1700.                         <page down> for more ASCII
  1701. High-bit characters (also called IBM |nASCII|n extended characters):
  1702.    128  Ç    147  ô    165  Ñ    183  ╖    201  ╔    219  █    237  φ
  1703.    129  ü    148  ö    166  ª    184  ╕    202  ╩    220  ▄    238  ε
  1704.    130  é    149  ò    167  º    185  ╣    203  ╦    221  ▌    239  ∩
  1705.    131  â    150  û    168  ¿    186  ║    204  ╠    222  ▐    240  ≡
  1706.    132  ä    151  ù    169  ⌐    187  ╗    205  ═    223  ▀    241  ±
  1707.    133  à    152  ÿ    170  ¬    188  ╝    206  ╬    224  α    242  ≥
  1708.    134  å    153  Ö    171  ½    189  ╜    207  ╧    225  ß    243  ≤
  1709.    135  ç    154  Ü    172  ¼    190  ╛    208  ╨    226  Γ    244  ⌠
  1710.    136  ê    155  ¢    173  ¡    191  ┐    209  ╤    227  π    245  ⌡
  1711.    137  ë    156  £    174  «    192  └    210  ╥    228  Σ    246  ÷
  1712.    138  è    157  ¥    175  »    193  ┴    211  ╙    229  σ    247  ≈
  1713.    139  ï    158  ₧    176  ░    194  ┬    212  ╘    230  µ    248  °
  1714.    140  î    159  ƒ    177  ▒    195  ├    213  ╒    231  τ    249  ∙
  1715.    141  ì    160  á    178  ▓    196  ─    214  ╓    232  Φ    250  ·
  1716.    142  Ä    161  í    179  │    197  ┼    215  ╫    233  Θ    251  √
  1717.    143  Å    162  ó    180  ┤    198  ╞    216  ╪    234  Ω    252  ⁿ
  1718.    144  É    163  ú    181  ╡    199  ╟    217  ┘    235  δ    253  ²
  1719.    145  æ    164  ñ    182  ╢    200  ╚    218  ┌    236  ∞    254  ■
  1720.    146  Æ               <page down> for more ASCII             255  blank
  1721. Extended characters:  (These don't count for a text file but you may need
  1722. them for ANSI.SYS keyboard reassignment, and such things.)   It takes two
  1723. codes put together to represent the following characters.  The first code
  1724. is always the |nASCII|n null, which is 0,  and the two codes are separated by
  1725. a semicolon (;).  So to represent the <F10> key, whose keyboard scan code
  1726. is 68, you would type 0;68
  1727.     1  Alt-ESC         25  Alt-P       39  Alt-;            56  Alt-Break
  1728.     3  Null            26  Alt-[       43  Alt-\            57  Alt-Space
  1729.    14  Alt-Backspace   27  Alt-]       44  Alt-Z            58  Capslock
  1730.    15  Shift-Tab       28  Alt-Enter   45  Alt-X            59  F1
  1731.    16  Alt-Q           30  Alt-A       46  Alt-C            60  F2
  1732.    17  Alt-W           31  Alt-S       47  Alt-V            61  F3
  1733.    18  Alt-E           32  Alt-D       48  Alt-B            62  F4
  1734.    19  Alt-R           33  Alt-F       49  Alt-N            63  F5
  1735.    20  Alt-T           34  Alt-G       50  Alt-M            64  F6
  1736.    21  Alt-Y           35  Alt-H       51  Alt-,            65  F7
  1737.    22  Alt-U           36  Alt-J       52  Alt-.            66  F8
  1738.    23  Alt-I           37  Alt-K       53  Alt-/            67  F9
  1739.    24  Alt-O           38  Alt-L       55  Alt-* (keypad)   68  F10
  1740.                         <page down> for more ASCII
  1741.   69  Numlock          88  Shift-F5    107  Alt-F4    126  Alt-7
  1742.   70  Scroll Lock      89  Shift-F6    108  Alt-F5    127  Alt-8
  1743.   71  Home             90  Shift-F7    109  Alt-F6    128  Alt-9
  1744.   72  Up               91  Shift-F8    110  Alt-F7    129  Alt-0
  1745.   73  Pg Up            92  Shift-F9    111  Alt-F8    130  Alt--
  1746.   74  Alt-- (keypad)   93  Shift-F10   112  Alt-F9    131  Alt-=
  1747.   75  Left             94  ^F1         113  Alt-F10   132  ^Pg Up
  1748.   76  Shift-5 (keypad) 95  ^F2         114  ^Prt Sc   133  F11
  1749.   77  Right            96  ^F3         115  ^Left     134  F12
  1750.   78  Alt-+ (keypad)   97  ^F4         116  ^Right    135  Shift-F11
  1751.   79  End              98  ^F5         117  ^End      136  Shift-F12
  1752.   80  Down             99  ^F6         118  ^Pg Dn    137  ^F11
  1753.   81  Pg Dn           100  ^F7         119  ^Home     138  ^F12
  1754.   82  Insert          101  ^F8         120  Alt-1     139  Alt-F11
  1755.   83  Delete          102  ^F9         121  Alt-2     140  Alt-F12
  1756.   84  Shift-F1        103  ^F10        122  Alt-3     141  ^Up/8 (keypad)
  1757.   85  Shift-F2        104  Alt-F1      123  Alt-4     142  ^- (keypad)
  1758.   86  Shift-F3        105  Alt-F2      124  Alt-5     143  ^5 (keypad)
  1759.   87  Shift-F4        106  Alt-F3      125  Alt-6     144  ^+ (keypad)
  1760.                         <page down> for more ASCII
  1761.           145  ^Down/2 (keypad)                   157  Alt-Right
  1762.           146  ^Insert/0 (keypad)                 159  Alt-End
  1763.           147  ^Delete/. (keypad)                 160  Alt-Down
  1764.           148  ^Tab                               161  Alt-Pg Dn
  1765.           149  ^/ (keypad)                        162  Alt-Insert
  1766.           150  ^* (keypad)                        163  Alt-Delete
  1767.           151  Alt-Home                           164  Alt-/ (keypad)
  1768.           152  Alt-Up                             165  Alt-Tab
  1769.           153  Alt-Pg Up                          166  Alt-Enter (keypad)
  1770.           155  Alt-Left
  1771.  
  1772. Remember that  a symbol such as  ^Home means <Ctrl-Home>  which means for
  1773. you to hold down one of the <Ctrl> keys while you hit the <Home> key.
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.                    For beginning of File 7, see APPEND
  1781. |tAUTOEXEC.BAT|t|fSIMPLY1|f
  1782. |TFAT|T|fSIMPLY1|f
  1783. |tBatch|t|fSIMPLY2|f
  1784. |TECHO|T|fSIMPLY2|f
  1785. |TGOTO|T|fSIMPLY2|f
  1786. |tpiping|t|fSIMPLY2|f
  1787. |tRedirection|t|fSIMPLY2|f
  1788. |TSHIFT|T|fSIMPLY2|f
  1789. |TSORT|T|fSIMPLY2|f
  1790. |T286|T|fSIMPLY3|f
  1791. |T386|T|fSIMPLY3|f
  1792. |TBIOS|T|fSIMPLY3|f
  1793. |tBytes|t|fSIMPLY3|f
  1794. |TCMOS|T|fSIMPLY3|f
  1795. |tLOADHIGH|t|fSIMPLY3|f
  1796. |tMemory|t|fSIMPLY3|f
  1797. |tRAMdisk|t|fSIMPLY3|f
  1798. |TRAM|T|fSIMPLY3|f
  1799. |TRESTORE|T|fSIMPLY3|f
  1800. |TROM|T|fSIMPLY3|f
  1801. |tsetup|t|fSIMPLY3|f
  1802. |TSHARE|T|fSIMPLY3|f
  1803. |tTSR|t|fSIMPLY3|f
  1804. |TXT|T|fSIMPLY3|f
  1805. |tANSI.SYS|t|fSIMPLY4|f
  1806. |tbad sector|t|fSIMPLY4|f
  1807. |TBREAK|T|fSIMPLY4|f
  1808. |tCONFIG.SYS|t|fSIMPLY4|f
  1809. |tDevice Driver|t|fSIMPLY4|f
  1810. |TFDISK|T|fSIMPLY4|f
  1811. |tfloppy|t|fSIMPLY4|f
  1812. |TFORMAT|T|fSIMPLY4|f
  1813. |TGRAPHICS|T|fSIMPLY4|f
  1814. |tIBMBIO.COM|t|fSIMPLY4|f
  1815. |tIBMDOS.COM|t|fSIMPLY4|f
  1816. |tIO.SYS|t|fSIMPLY4|f
  1817. |TLABEL|T|fSIMPLY4|f
  1818. |tLogical Drives|t|fSIMPLY4|f
  1819. |tMSDOS.SYS|t|fSIMPLY4|f
  1820. |tpartition|t|fSIMPLY4|f
  1821. |tPATH|t|fSIMPLY4|f
  1822. |tPROMPT|t|fSIMPLY4|f
  1823. |TSHELL|T|fSIMPLY4|f
  1824. |tCOMMAND.COM|t|fSIMPLY5|f
  1825. |TCON|T|fSIMPLY5|f
  1826. |TCOPY|T|fSIMPLY5|f
  1827. |tcurrent|t|fSIMPLY5|f
  1828. |TDEL|T|fSIMPLY5|f
  1829. |tDirectory|t|fSIMPLY5|f
  1830. |TDIR|T|fSIMPLY5|f
  1831. |TERASE|T|fSIMPLY5|f
  1832. |texternal|t|fSIMPLY5|f
  1833. |TKEYB|T|fSIMPLY5|f
  1834. |TPRN|T|fSIMPLY5|f
  1835. |TRENAME|T|fSIMPLY5|f
  1836. |troot|t|fSIMPLY5|f
  1837. |tShelling Out|t|fSIMPLY5|f
  1838. |TTYPE|T|fSIMPLY5|f
  1839. |TAPPEND|T|fSIMPLY7|f
  1840. |TASSIGN|T|fSIMPLY7|f
  1841. |tAttributes|t|fSIMPLY7|f
  1842. |TATTRIB|T|fSIMPLY7|f
  1843. |TBACKUP|T|fSIMPLY7|f
  1844. |TCHKDSK|T|fSIMPLY7|f
  1845. |TDEBUG|T|fSIMPLY7|f
  1846. |tediting keys|t|fSIMPLY7|f
  1847. |TEDLIN|T|fSIMPLY7|f
  1848. |tHidden|t|fSIMPLY7|f
  1849.